Skip to content

Fix OpenAPI code sample box not scrolling on initial load#4279

Merged
nolannbiron merged 1 commit into
mainfrom
nolann/rnd-11106-openapi-unable-to-scroll-the-code-box-until-view-is-toggled
May 28, 2026
Merged

Fix OpenAPI code sample box not scrolling on initial load#4279
nolannbiron merged 1 commit into
mainfrom
nolann/rnd-11106-openapi-unable-to-scroll-the-code-box-until-view-is-toggled

Conversation

@nolannbiron
Copy link
Copy Markdown
Member

@nolannbiron nolannbiron commented May 28, 2026

No description provided.

The relative wrapper around the pre in CodeBlockRenderer was a block flex
item, so its min-height defaulted to its content size. The pre therefore
never shrunk inside the sticky OpenAPI preview column, leaving content
clipped by the parent's overflow-hidden without ever triggering the pre's
own overflow-auto scroll. Make the wrapper a flex column with min-h-0 so
the pre (as a scroll-container flex child) shrinks and scrolls correctly
whenever the available height is smaller than its content.
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

RND-11106

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 28, 2026

🦋 Changeset detected

Latest commit: cd48240

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
Copy Markdown

argos-ci Bot commented May 28, 2026

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

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) ✅ No changes detected - May 28, 2026, 9:50 AM
customers-v2-vercel (Inspect) ✅ No changes detected - May 28, 2026, 9:49 AM
v2-cloudflare (Inspect) 👍 Changes approved 16 changed May 28, 2026, 9:55 AM
v2-vercel (Inspect) 👍 Changes approved 22 changed May 28, 2026, 9:55 AM

@nolannbiron nolannbiron merged commit b116a0a into main May 28, 2026
17 checks passed
@nolannbiron nolannbiron deleted the nolann/rnd-11106-openapi-unable-to-scroll-the-code-box-until-view-is-toggled branch May 28, 2026 10:04
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