Skip to content

Restore two-column layout for very wide viewports #1050

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

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Restore two-column layout for very wide viewports #1050

merged 1 commit into from
Apr 7, 2022

Conversation

ysangkok
Copy link
Member

@ysangkok ysangkok commented Apr 4, 2022

I failed to test for very wide viewports where the #content max-width of 1450px comes into play. In this case, the left-pane would be too wide, and the properties pane would be pushed down, as shown on the first screenshot.

Before this PR:
Description block is 887px wide
The width of 887px is more than 60% of 1450px minus 2em (which equals 870px minus 2em), which means that there is no room for the properties pane. It would exceed that limit by even more as the screen grows larger (see later for how to reproduce).

This is fixed by using the min(...) CSS function to provide this upper limit. Now the two columns are used as expected:

With this PR applied, the layout uses two columns as expected

To reproduce this, you can simply just zoom out using Control-Hyphen. This makes the pixel size smaller, which eventually triggers this problem.

@gbaz gbaz merged commit bb69286 into haskell:master Apr 7, 2022
@ysangkok ysangkok deleted the janus/max-width-package-page branch April 7, 2022 19:26
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.

2 participants