Skip to content
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

Enable horizontal scrollbar for method source code #243

Merged

Conversation

jonathanhefner
Copy link
Member

When method source code is shown and contains long lines, it can overflow and cause the entire page to be horizontally scrollable.

To prevent that, this commit sets overflow-x: auto for method source code blocks (the same as for other code blocks), so that only the block is horizontally scrollable.

Before After
before after

When method source code is shown and contains long lines, it can
overflow and cause the entire page to be horizontally scrollable.

To prevent that, this commit sets `overflow-x: auto` for method source
code blocks (the same as for other code blocks), so that only the block
is horizontally scrollable.
@jonathanhefner jonathanhefner merged commit c0d4300 into rails:main Jul 21, 2023
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