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

Fix wide elements (equations, tables, and inline code) breaking site width and layout #1129

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Fix wide elements (equations, tables, and inline code) breaking site width and layout #1129

merged 2 commits into from
Jan 4, 2024

Conversation

ragibson
Copy link
Contributor

This tweaks the CSS to fix #990 by adding scroll bars to long KaTeX equations, tables, and inline code sections. The corresponding edits to assets/css/compiled/main.css are from the Tailwind compiler.

In the past, such long elements used to break the site layout, render some elements off-screen with no way to view them, and cause menus to be unreachable or impossible to click, especially on mobile devices.

I tested it on an example post similar to the one in the original issue. The scroll bars on these elements will fade in and out as needed, depending on the default behavior of the user's browser.
breaking-site-width-comparison

@nunocoracao nunocoracao changed the base branch from main to dev January 4, 2024 20:59
@nunocoracao nunocoracao merged commit bfc35c3 into nunocoracao:dev Jan 4, 2024
2 checks passed
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.

Long tables, formulas, code blocks, etc. break website width / overall site scrolling
2 participants