From f3fc5e88ba54a50fb4e599dac6b9c53d9b758bed Mon Sep 17 00:00:00 2001 From: Bretton <36870434+BrettM86@users.noreply.github.com> Date: Mon, 20 Jul 2026 00:31:20 -0700 Subject: [PATCH] fix(post): polish post header and card spacing Three small UI fixes to post rendering surfaced during dev QA: Changes: - PostMeta: the CommunityLink anchor is a direct grid child, so it stretched to fill the entire header column and its hover/click target extended far past the text. justify-self-start sizes it to its content; long handles still ellipsize at the track edge. - Post page: the Material card wrapped the post with padding="none", leaving the avatar, embed, and action bar flush against the card border. px-4 insets content horizontally (vertical inset already comes from the article's py-5). - UserLink: when a user has no displayName the primary text falls back to the handle, and the instance suffix rendered it a second time ("mari.dev@mari.dev"). The suffix now renders only when the shown name differs from the handle. Co-Authored-By: Claude Fable 5 --- src/lib/feature/post/PostMeta.svelte | 2 +- src/lib/feature/user/UserLink.svelte | 10 ++++++++-- src/routes/c/[handle=handle]/post/[rkey]/+page.svelte | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/lib/feature/post/PostMeta.svelte b/src/lib/feature/post/PostMeta.svelte index 391c938d..47691785 100644 --- a/src/lib/feature/post/PostMeta.svelte +++ b/src/lib/feature/post/PostMeta.svelte @@ -204,7 +204,7 @@ {/if}
- {displayName ? user.displayName || user.handle : user.handle} + {shownName} - {#if showInstance} + {#if showHandleSuffix} + -- 2.51.2