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

Style: Fix unbounded max width causing very wide spans to overflow #2478

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

CAM-Gerlach
Copy link
Member

As originally reported by @pradyunsg on #2476 , PEP 440 (PEP-0440, namely this section) and possibly other specific PEPs that contain very long <span>s (i.e. syntax-highlighted text with the same color) inside scrolling literal blocks overflow the viewport at wider screen width, causing the rest of the page to overflow as well.

To make a long story short, after some investigation and testing, setting an appropriately-bounded max-width on the page content for the widest breakpoint (where it was previously unbounded) avoided this problem and ensured the page displayed identically to other PEPs with more typical content, while not affecting anything else.

Additionally, I noticed that max-width for the next-narrower breakpoint was not quite set correctly, leading to a modest overflow at widths near the breakpoint, which I fixed as well.

Fixes #2476

@CAM-Gerlach CAM-Gerlach added bug infra Core infrastructure for building and rendering PEPs labels Mar 28, 2022
@CAM-Gerlach CAM-Gerlach requested a review from hugovk March 28, 2022 23:52
@CAM-Gerlach CAM-Gerlach self-assigned this Mar 28, 2022
@CAM-Gerlach
Copy link
Member Author

It's been two days and this was approved, so going ahead and merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug CLA signed infra Core infrastructure for building and rendering PEPs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The page becomes wider than the viewport on certain PEPs
3 participants