mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
Make inbox messages more compact (#4378)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
+2
@@ -37,6 +37,7 @@
|
||||
export let shouldScroll: boolean = false
|
||||
export let embedded: boolean = false
|
||||
export let withActions: boolean = true
|
||||
export let withFlatActions: boolean = true
|
||||
export let excludedActions: string[] = []
|
||||
export let actions: Action[] = []
|
||||
export let onClick: (() => void) | undefined = undefined
|
||||
@@ -70,6 +71,7 @@
|
||||
{withActions}
|
||||
{actions}
|
||||
{excludedActions}
|
||||
{withFlatActions}
|
||||
viewlet={undefined}
|
||||
{onClick}
|
||||
>
|
||||
|
||||
+2
@@ -31,6 +31,7 @@
|
||||
export let skipLabel = false
|
||||
export let actions: Action[] = []
|
||||
export let excludedActions: string[] = []
|
||||
export let withFlatActions: boolean = true
|
||||
export let onClick: (() => void) | undefined = undefined
|
||||
export let onReply: (() => void) | undefined = undefined
|
||||
|
||||
@@ -56,6 +57,7 @@
|
||||
hideReplies,
|
||||
actions,
|
||||
excludedActions,
|
||||
withFlatActions,
|
||||
onClick,
|
||||
onReply
|
||||
}}
|
||||
|
||||
+17
-12
@@ -46,8 +46,10 @@
|
||||
export let shouldScroll: boolean = false
|
||||
export let embedded: boolean = false
|
||||
export let withActions: boolean = true
|
||||
export let withFlatActions: boolean = true
|
||||
export let showEmbedded = false
|
||||
export let hideReplies = false
|
||||
export let skipLabel = false
|
||||
export let onClick: (() => void) | undefined = undefined
|
||||
export let onReply: (() => void) | undefined = undefined
|
||||
|
||||
@@ -150,8 +152,9 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<slot name="header" />
|
||||
|
||||
{#if !skipLabel}
|
||||
<slot name="header" />
|
||||
{/if}
|
||||
<span class="text-sm">{getDisplayTime(message.createdOn ?? 0)}</span>
|
||||
</div>
|
||||
|
||||
@@ -175,17 +178,19 @@
|
||||
class:opened={isActionMenuOpened || message.isPinned}
|
||||
>
|
||||
{#if withActions}
|
||||
<AddReactionAction object={message} />
|
||||
<PinMessageAction object={message} />
|
||||
<SaveMessageAction object={message} />
|
||||
{#if withFlatActions}
|
||||
<AddReactionAction object={message} />
|
||||
<PinMessageAction object={message} />
|
||||
<SaveMessageAction object={message} />
|
||||
|
||||
<ActivityMessageExtensionComponent
|
||||
kind="action"
|
||||
{extensions}
|
||||
props={{ object: message }}
|
||||
on:close={handleActionMenuClosed}
|
||||
on:open={handleActionMenuOpened}
|
||||
/>
|
||||
<ActivityMessageExtensionComponent
|
||||
kind="action"
|
||||
{extensions}
|
||||
props={{ object: message }}
|
||||
on:close={handleActionMenuClosed}
|
||||
on:open={handleActionMenuOpened}
|
||||
/>
|
||||
{/if}
|
||||
{#if withActionMenu}
|
||||
<ActionIcon icon={IconMoreH} size="small" action={showMenu} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user