From 1eb75f4ae7a892dd196bd6b3d451b1a066dd510b Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 24 Jun 2026 11:19:13 -0700 Subject: [PATCH] Fix thread page styling --- src/app/components/ContentCode.svelte | 2 +- src/app/components/ThreadBoard.svelte | 28 +++++++++------- src/app/components/ThreadBoardItem.svelte | 32 +++++++++---------- .../spaces/[relay]/threads/+page.svelte | 2 -- 4 files changed, 34 insertions(+), 30 deletions(-) diff --git a/src/app/components/ContentCode.svelte b/src/app/components/ContentCode.svelte index 8c9674b4..81015093 100644 --- a/src/app/components/ContentCode.svelte +++ b/src/app/components/ContentCode.svelte @@ -3,7 +3,7 @@ {value.trim()} diff --git a/src/app/components/ThreadBoard.svelte b/src/app/components/ThreadBoard.svelte index 9b0f5d8b..fe780cff 100644 --- a/src/app/components/ThreadBoard.svelte +++ b/src/app/components/ThreadBoard.svelte @@ -12,7 +12,7 @@ const {url, h, threads}: Props = $props() -
+

@@ -27,14 +27,20 @@ {threads.length === 1 ? "topic" : "topics"}

- - {#each threads as event (event.id)} - - {/each} + + + + + + + + + + + {#each threads as event (event.id)} + + {/each} + +
diff --git a/src/app/components/ThreadBoardItem.svelte b/src/app/components/ThreadBoardItem.svelte index 9b991f4e..c0e6225b 100644 --- a/src/app/components/ThreadBoardItem.svelte +++ b/src/app/components/ThreadBoardItem.svelte @@ -2,6 +2,7 @@ import {formatTimestamp, max} from "@welshman/lib" import type {TrustedEvent} from "@welshman/util" import {COMMENT, getTagValue} from "@welshman/util" + import {goto} from "$app/navigation" import Link from "@lib/components/Link.svelte" import ProfileCircle from "@app/components/ProfileCircle.svelte" import ProfileName from "@app/components/ProfileName.svelte" @@ -20,29 +21,28 @@ const replyCount = $derived($replies.length) const lastActive = $derived(max([...$replies, event].map(e => e.created_at))) const title = getTagValue("title", event.tags) + const path = makeThreadPath(url, event.id) + const goToThread = () => goto(path) - - - -

{title || "Untitled thread"}

-

- by -

+ + + + {title || "Untitled thread"} - - - - - + +
+ + + + +
- - Replies · + {replyCount} - - Last · + {formatTimestamp(lastActive)} diff --git a/src/routes/spaces/[relay]/threads/+page.svelte b/src/routes/spaces/[relay]/threads/+page.svelte index fff11319..b405f361 100644 --- a/src/routes/spaces/[relay]/threads/+page.svelte +++ b/src/routes/spaces/[relay]/threads/+page.svelte @@ -93,8 +93,6 @@ Looking for threads... {:else if threadFeed.items.length === 0} No threads found. - {:else} - That's all! {/if}