From 0d822f4096ffaf559bca2a11af75b0e876e24a34 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Mon, 29 Jan 2024 22:34:18 +0500 Subject: [PATCH] put comment input field on top when the newest activity is first (#4470) Signed-off-by: Vyacheslav Tumanov --- .../src/components/Activity.svelte | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/plugins/activity-resources/src/components/Activity.svelte b/plugins/activity-resources/src/components/Activity.svelte index f20f2ca87d..77495b2812 100644 --- a/plugins/activity-resources/src/components/Activity.svelte +++ b/plugins/activity-resources/src/components/Activity.svelte @@ -85,7 +85,12 @@ bind:isNewestFirst /> -
+{#if isNewestFirst && showCommenInput} +
+ +
+{/if} +
{#if filteredMessages.length} {#each filteredMessages as message} @@ -102,8 +107,8 @@ {/if}
-{#if showCommenInput} -
+{#if showCommenInput && !isNewestFirst} +
{/if} @@ -111,12 +116,22 @@