From 7573d3b5dae494e34c4d39a4e21622d90518ed30 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sun, 29 Mar 2026 16:35:29 +0200 Subject: [PATCH] fix(dashboard): wrap mention items so last:border-0 works correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding the link div after the {#each} broke last:border-0 — the last mention item was no longer the last child, so it kept its border-b, creating a double line with the link's border-t. Wrapping the each in its own div restores correct last:border-0 targeting. Co-Authored-By: Claude Sonnet 4.6 --- .../lib/components/DashboardMentions.svelte | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/frontend/src/lib/components/DashboardMentions.svelte b/frontend/src/lib/components/DashboardMentions.svelte index 2deaddda..8a1d1e62 100644 --- a/frontend/src/lib/components/DashboardMentions.svelte +++ b/frontend/src/lib/components/DashboardMentions.svelte @@ -24,26 +24,28 @@ let { mentions }: Props = $props();

{m.dashboard_notifications_heading()}

- {#each mentions as mention (mention.id)} -
- {#if mention.documentId} - {mention.actorName ?? ''} - - {mention.type === 'MENTION' - ? m.dashboard_notification_mentioned() - : m.dashboard_notification_replied()} - - {:else} - {mention.actorName ?? ''} - {/if} -
- {/each} +
+ {#each mentions as mention (mention.id)} +
+ {#if mention.documentId} + {mention.actorName ?? ''} + + {mention.type === 'MENTION' + ? m.dashboard_notification_mentioned() + : m.dashboard_notification_replied()} + + {:else} + {mention.actorName ?? ''} + {/if} +
+ {/each} +