Skip to content

Conversation

nolannbiron
Copy link
Member

Before:
CleanShot 2025-10-13 at 15 40 57@2x

After:
CleanShot 2025-10-13 at 15 40 22@2x

Copy link

linear bot commented Oct 13, 2025

Copy link

changeset-bot bot commented Oct 13, 2025

🦋 Changeset detected

Latest commit: dbc782b

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

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds scroll margin to the Expandable component to improve the user experience when navigating to expandable sections, ensuring proper spacing from the top of the viewport when scrolled to.

  • Added scroll margin CSS class to the Details element in the Expandable component
  • Restructured the Details element props for better readability

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/gitbook/src/components/DocumentView/Expandable/Expandable.tsx Added scroll-mt CSS class with content scroll margin variable to improve scroll positioning
.changeset/seven-jokes-vanish.md Added changeset entry documenting the scroll margin addition

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

argos-ci bot commented Oct 13, 2025

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

Build Status Details Updated (UTC)
customers-v2 (Inspect) 👍 Changes approved 4 changed Oct 13, 2025, 1:49 PM
v2-cloudflare (Inspect) 👍 Changes approved 7 changed Oct 13, 2025, 1:54 PM
v2-vercel (Inspect) 👍 Changes approved 5 changed Oct 13, 2025, 1:53 PM

@nolannbiron nolannbiron merged commit 511f1cf into main Oct 13, 2025
16 checks passed
@nolannbiron nolannbiron deleted the nolann/rnd-8287-scroll-offset-issue-in-expandable-blocks branch October 13, 2025 13:54
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