Stop repeating the thread title in the opening post

This commit is contained in:
Coracle-Bot 2026-09-09 17:14:46 +00:00 committed by hodlbod
parent 98290e1a9b
commit 057f0bc2bb
2 changed files with 4 additions and 6 deletions

View file

@ -764,6 +764,9 @@ test("US-043 reply to a thread and to a specific post", async ({seed, as}) => {
await expect(openingPost.getByText("OP", {exact: true})).toBeVisible() await expect(openingPost.getByText("OP", {exact: true})).toBeVisible()
await expect(bob.getByText("20 replies")).toBeVisible() await expect(bob.getByText("20 replies")).toBeVisible()
// The page bar carries the title, so the opening post does not repeat it.
await expect(bob.getByText("Bed rotation")).toHaveCount(1)
await bob.getByRole("button", {name: "Reply to thread"}).click() await bob.getByRole("button", {name: "Reply to thread"}).click()
const threadReply = composerForm(bob) const threadReply = composerForm(bob)

View file

@ -9,7 +9,6 @@
import Badge from "@lib/components/Badge.svelte" import Badge from "@lib/components/Badge.svelte"
import ProfileCircle from "@app/components/ProfileCircle.svelte" import ProfileCircle from "@app/components/ProfileCircle.svelte"
import ProfileDetail from "@app/components/ProfileDetail.svelte" import ProfileDetail from "@app/components/ProfileDetail.svelte"
import NoteContent from "@app/components/NoteContent.svelte"
import Content from "@app/components/Content.svelte" import Content from "@app/components/Content.svelte"
import CommentActions from "@app/components/CommentActions.svelte" import CommentActions from "@app/components/CommentActions.svelte"
import type {FeedContext} from "@app/feeds" import type {FeedContext} from "@app/feeds"
@ -78,11 +77,7 @@
</Button> </Button>
</div> </div>
<div class="px-3 py-4 sm:px-4"> <div class="px-3 py-4 sm:px-4">
{#if isComment} <Content showEntire {event} {url} />
<Content showEntire {event} {url} />
{:else}
<NoteContent showEntire {event} {url} />
{/if}
</div> </div>
<div <div
class="bg-surface flex shrink-0 flex-col gap-2 border-t px-3 py-3 sm:flex-row sm:items-center sm:justify-between sm:px-4" class="bg-surface flex shrink-0 flex-col gap-2 border-t px-3 py-3 sm:flex-row sm:items-center sm:justify-between sm:px-4"