Skip to content

Conversation

@Maelryn
Copy link

@Maelryn Maelryn commented Dec 23, 2025

Closes #23642

What I did

I increased the paddingRight in the SyntaxHighlighter component to 85px.
This prevents the code text from running under the absolute positioned "Copy" button when viewing in mobile/portrait modes.

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

  • Manual testing
  1. Open Storybook in a mobile viewport (Portrait mode).
  2. Go to any story that displays a code snippet with the Copy button.
  3. Verify that the long lines of code now wrap before hitting the Copy button.

Fixes storybookjs#23642

Increased paddingRight in syntaxhighlighter.tsx to 85px.
This prevents the code text from running under the absolute positioned "Copy" button when viewing in mobile/portrait modes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant