Skip to content

fix: dual scrollbars on code block#103

Merged
Shrinks99 merged 2 commits into
mainfrom
fix/GOV-332-dual-scrollbars-code-block
Jul 1, 2026
Merged

fix: dual scrollbars on code block#103
Shrinks99 merged 2 commits into
mainfrom
fix/GOV-332-dual-scrollbars-code-block

Conversation

@giuliana-gladeye

Copy link
Copy Markdown
Collaborator

Fix dual scrollbars in CodeBlock

Was able to reproduce this issue by updating the System Settings → Appearance → Show scroll bars: Always on macOS.

The <pre> rendered by react-syntax-highlighter inherits overflow: auto from the Prism theme, which stacks a second scroll container inside .content (with it’s own overflow: scroll), ending up in two vertical scrollbars on the same axis.

  • .pre: added overflow-visible! to kill the inner scrollbar inherited from the theme.
  • .content: switched overflow-scroll to overflow-auto so the bar only shows when content actually overflows.

Linear ticket: Dual Scrollbars on indicators.
We will need to release the package after merging and upgrade it on Gov Studio to close ticket.

See before:
Screenshot 2026-07-01 at 10 08 24 AM

And after:
Screenshot 2026-07-01 at 10 07 59 AM

@Shrinks99
Shrinks99 merged commit adc3882 into main Jul 1, 2026
1 check passed
@Shrinks99
Shrinks99 deleted the fix/GOV-332-dual-scrollbars-code-block branch July 1, 2026 16:55
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