Skip to content

fix(web): move the support banner into the content column - #94

Merged
lxup merged 1 commit into
mainfrom
fix/web-support-banner-placement
Nov 8, 2026
Merged

lxup merged 1 commit into
mainfrom
fix/web-support-banner-placement

Conversation

@lxup

@lxup lxup commented Nov 8, 2026

Copy link
Copy Markdown
Member

Description

Moves the support banner from above AppLayout into the content column.

As merged in #93 it was rendered above the whole layout, so the yellow band spanned the full page width and pushed the sidebars down with it. It now renders inside SidebarInset, above the sticky Header, which keeps the sidebars anchored at the top of the viewport.

Changes

  • app/[lang]/(app)/layout.tsx goes back to rendering AppLayout alone, with no fragment wrapper.
  • layouts/app-layout/AppLayout.tsx renders SupportBanner as the first child of SidebarInset, before Header.

Impact

  • The sidebars are no longer pushed down by the banner, and the banner no longer overlaps them.
  • Header is sticky top-0, so the banner scrolls away with the content while the header stays pinned. The banner is seen on arrival and then gets out of the way, which is the Wikipedia behaviour.
  • No change to when the banner shows: the premium exclusion, the mount guard and the 24-hour dismissal window are untouched.

Test Plan

  • nx affected -t typecheck lint test passes
  • Signed out on desktop: the banner sits above the header, inside the content column, and the sidebars start at the top of the viewport
  • Scrolling pushes the banner out of view and the header stays pinned
  • Closing it collapses the space with no layout jump in the sidebars
  • Mobile width: the banner does not collide with the navbar or the hidden header

It sat above `AppLayout`, so it spanned the whole page and pushed the sidebars
down with it. Rendering it inside `SidebarInset`, above the sticky `Header`,
keeps it in the content column: the sidebars stay anchored at the top, and the
banner scrolls away with the content while the header stays pinned.
@lxup
lxup merged commit 61f2b69 into main Nov 8, 2026
3 checks passed
@lxup
lxup deleted the fix/web-support-banner-placement branch November 8, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant