mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 00:25:07 +00:00
a5dc31a791
Make the page header actions (the "On this page" toggle and the assistant / page actions) stick to the top of the viewport on non-mobile viewports, so they stay reachable while scrolling long pages such as API references (RND-11139). - PageHeader: render the actions as a sibling of `<header>` (a direct child of the scrolling `<main>`) so its sticky containing block is the full page rather than the short header, which is why it scrolled away before. It pins padded just below the site header using the same server-default + client CSS-var pattern as the table of contents, and drops below the "On this page" panel when that is expanded as an overlay so it doesn't show on top of it. - OpenAPI: shift the sticky code-sample preview down so it clears the newly-sticky bar, and leave a small gap at the bottom of the viewport. - Button: keep secondary buttons' background in the flat depth style instead of making them transparent, so the sticky actions stay visible over the content they scroll past. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>