ezqms-537: make thread header hidable (#4458)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev 2024-01-26 14:51:22 +07:00 committed by GitHub
parent 960842863b
commit b461e3bb09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,7 @@
export let _id: Ref<ActivityMessage>
export let selectedMessageId: Ref<ActivityMessage> | undefined = undefined
export let showHeader: boolean = true
const messageQuery = createQuery()
const dispatch = createEventDispatcher()
@ -43,7 +44,8 @@
let content: HTMLDivElement | undefined = undefined
</script>
<div class="header">
{#if showHeader}
<div class="header">
<div class="title"><Label label={chunter.string.Thread} /></div>
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-no-static-element-interactions -->
@ -55,7 +57,8 @@
>
<IconClose size="medium" />
</div>
</div>
</div>
{/if}
{#if message}
<ThreadParentMessage {message} />