From 3a685584d2461ddc712f34290cc1ec72258e9173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Mon, 28 Oct 2024 10:34:23 +0100 Subject: [PATCH] Style comment reply box according to design --- src/components/Border.svelte | 273 +++++++++++++++++++---------------- src/components/Thread.svelte | 2 +- 2 files changed, 148 insertions(+), 127 deletions(-) diff --git a/src/components/Border.svelte b/src/components/Border.svelte index af34eb009..e21e2261f 100644 --- a/src/components/Border.svelte +++ b/src/components/Border.svelte @@ -10,6 +10,7 @@ export let styleCursor: "default" | "pointer" | "text" = "default"; export let styleGap: string = "0.5rem"; export let styleOverflow: string | undefined = undefined; + export let flatTop: boolean = false; $: style = `--local-button-color-1: var(--color-fill-${variant});` + @@ -17,100 +18,6 @@ @@ -152,45 +172,46 @@ style:width={styleWidth} style:cursor={styleCursor} class="container" + class:flat-top={flatTop} {onclick} role="button" tabindex={onclick !== undefined ? 0 : -1} {style} style:min-height={styleMinHeight} style:height={styleHeight}> -
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
diff --git a/src/components/Thread.svelte b/src/components/Thread.svelte index 37a837f95..49d24b65e 100644 --- a/src/components/Thread.svelte +++ b/src/components/Thread.svelte @@ -102,7 +102,7 @@ {#if replies.length > 0 || (createReply && showReplyForm)} - +
{#if replies.length > 0} {#each replies as reply}