Repository navigation
fix(web): move the support banner into the content column - #94
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Moves the support banner from above
AppLayoutinto 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 stickyHeader, which keeps the sidebars anchored at the top of the viewport.Changes
app/[lang]/(app)/layout.tsxgoes back to renderingAppLayoutalone, with no fragment wrapper.layouts/app-layout/AppLayout.tsxrendersSupportBanneras the first child ofSidebarInset, beforeHeader.Impact
Headerissticky 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.Test Plan
nx affected -t typecheck lint testpasses