Skip to content

fix(collapsible): open the panel to the content's exact size - #121

Merged
Agustin-Delgado merged 1 commit into
mainfrom
fix/collapse-fractional-height
Oct 14, 2026
Merged

Agustin-Delgado merged 1 commit into
mainfrom
fix/collapse-fractional-height

Conversation

@Agustin-Delgado

Copy link
Copy Markdown
Collaborator

scrollHeight rounds to whole pixels: content 57.5px tall opened a 58px panel, half a pixel taller than the server-rendered page, so everything below the panel moved on hydration. Within a pixel of the laid-out box the panel now uses the box's fractional size; beyond it (real overflow) it keeps the scroll size.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
human-kit-ui-docs Ready Ready Preview Oct 14, 2026 9:26pm UTC

@Agustin-Delgado
Agustin-Delgado merged commit cb2f700 into main Oct 14, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — fff89e6e Deployed Oct 14, 2026 by vercel[bot]
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.

1 participant