From b461e3bb09dbc68d5c82375d2386c3f170facd75 Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Fri, 26 Jan 2024 14:51:22 +0700 Subject: [PATCH] ezqms-537: make thread header hidable (#4458) Signed-off-by: Alexey Zinoviev --- .../src/components/threads/ThreadView.svelte | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/plugins/chunter-resources/src/components/threads/ThreadView.svelte b/plugins/chunter-resources/src/components/threads/ThreadView.svelte index 3f44ad1a1d..5f89e18f69 100644 --- a/plugins/chunter-resources/src/components/threads/ThreadView.svelte +++ b/plugins/chunter-resources/src/components/threads/ThreadView.svelte @@ -25,6 +25,7 @@ export let _id: Ref export let selectedMessageId: Ref | undefined = undefined + export let showHeader: boolean = true const messageQuery = createQuery() const dispatch = createEventDispatcher() @@ -43,19 +44,21 @@ let content: HTMLDivElement | undefined = undefined -
-
- - -
{ - dispatch('close') - }} - > - +{#if showHeader} +
+
+ + +
{ + dispatch('close') + }} + > + +
-
+{/if} {#if message}