-
Notifications
You must be signed in to change notification settings - Fork 12
Prevent code block text overflow on mobile devices #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add overflow-x-auto and max-w-full classes to pre elements - Add whitespace-pre and overflow-x-auto classes to code elements - Ensures code blocks scroll horizontally instead of overflowing container - Fixes text spilling outside boundaries on mobile/narrow viewports
There was a problem hiding this 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 fixes code block text overflow issues on mobile and narrow viewports by adding horizontal scrolling classes to three code blocks on the apps page.
- Added
max-w-fullandoverflow-x-autoto<pre>elements - Added
block,whitespace-pre, andoverflow-x-autoto<code>elements - Ensures code blocks scroll horizontally instead of breaking layout boundaries
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
Add classes to ensure code blocks scroll horizontally instead of overflowing their container, fixing text spilling outside boundaries on mobile and narrow viewports.
before:

now:
