Skip to content

Conversation

@zenoachtig
Copy link
Contributor

@zenoachtig zenoachtig commented Dec 2, 2025

This pull request introduces a new SideSheet component and refactors the TOC and AIChat to use it.

SideSheet Component & Usage Updates:

UI/UX and Responsive Improvements:

  • Improved handling of safe area insets for components like CookiesToast and Header, ensuring proper spacing on devices with notches or rounded corners. (CookiesToast.tsx [1] [2]; Header.tsx [3]
  • Added viewportFit: 'cover' to the viewport meta tag for better fullscreen support on mobile devices. (SiteLayout.tsx packages/gitbook/src/components/SiteLayout/SiteLayout.tsxR104)

Table of Contents and Section List Enhancements:

  • Updated active prop handling for TOC and section lists to use hash-prefixed IDs, improving navigation and highlighting. (AIChat.tsx [1]; SiteSectionList.tsx [2]; SiteSectionTabs.tsx [3]
  • Refined layout and header logic for TOC and section lists in SpaceLayout, improving visibility and responsiveness. (SpaceLayout.tsx [1] [2] [3] [4] [5]

Minor UI and Codebase Cleanups:

  • Simplified and cleaned up the mobile menu toggle logic in HeaderMobileMenu, removing unnecessary state and scroll tracking. (HeaderMobileMenu.tsx [1] [2]
  • Fixed minor UI issues in AnnouncementBanner and other components for better alignment and interaction. (AnnouncementBanner.tsx [1] [2]
  • Miscellaneous class name and style adjustments for consistency and improved transitions. (EmbeddableDocsPage.tsx packages/gitbook/src/components/Embeddable/EmbeddableDocsPage.tsxL84-R84)

These changes collectively provide a more modern, consistent, and maintainable user interface, especially around side panels and responsive layouts.

@linear
Copy link

linear bot commented Dec 2, 2025

@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

🦋 Changeset detected

Latest commit: aa86711

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@argos-ci
Copy link

argos-ci bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2 (Inspect) ⚠️ Changes detected (Review) 78 changed Dec 11, 2025, 6:40 PM
v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 327 changed Dec 11, 2025, 6:45 PM
v2-vercel (Inspect) ⚠️ Changes detected (Review) 333 changed Dec 11, 2025, 6:44 PM

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.

2 participants