Stop repeating the thread title in the opening post
This commit is contained in:
parent
98290e1a9b
commit
057f0bc2bb
2 changed files with 4 additions and 6 deletions
|
|
@ -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(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()
|
||||
|
||||
const threadReply = composerForm(bob)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
import Badge from "@lib/components/Badge.svelte"
|
||||
import ProfileCircle from "@app/components/ProfileCircle.svelte"
|
||||
import ProfileDetail from "@app/components/ProfileDetail.svelte"
|
||||
import NoteContent from "@app/components/NoteContent.svelte"
|
||||
import Content from "@app/components/Content.svelte"
|
||||
import CommentActions from "@app/components/CommentActions.svelte"
|
||||
import type {FeedContext} from "@app/feeds"
|
||||
|
|
@ -78,11 +77,7 @@
|
|||
</Button>
|
||||
</div>
|
||||
<div class="px-3 py-4 sm:px-4">
|
||||
{#if isComment}
|
||||
<Content showEntire {event} {url} />
|
||||
{:else}
|
||||
<NoteContent showEntire {event} {url} />
|
||||
{/if}
|
||||
<Content showEntire {event} {url} />
|
||||
</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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue