Skip to content

Commit

Permalink
Move redirect above chat summary
Browse files Browse the repository at this point in the history
Stock YT behavior:
Outbound redirect last indefinitely.
Inbound redirect lasts 20s then disappears.
Chat summary lasts 12s then disappears.
Pinned message lasts 8s then collapses.

Since Hyperchat makes all of these collapse instead of disappear, making the longer-lasting ones higher up so that stuff shifts around less often.
  • Loading branch information
FlaminSarge authored Jan 1, 2025
1 parent 7527eda commit 85615d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Hyperchat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,14 @@
</div>
{#if hasBanner}
<div class="absolute top-0 w-full" bind:this={topBar}>
{#if summary && $showChatSummary}
{#if redirect}
<div class="mx-1.5 mt-1.5">
<ChatSummary summary={summary} on:resize={topBarResized} />
<RedirectBanner redirect={redirect} on:resize={topBarResized} />
</div>
{/if}
{#if redirect}
{#if summary && $showChatSummary}
<div class="mx-1.5 mt-1.5">
<RedirectBanner redirect={redirect} on:resize={topBarResized} />
<ChatSummary summary={summary} on:resize={topBarResized} />
</div>
{/if}
{#if pinned}
Expand Down

0 comments on commit 85615d3

Please sign in to comment.