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

homepage: Fix horizontal scroll on narrower widths #441

Merged
merged 4 commits into from Jun 4, 2020

Conversation

garbas
Copy link
Member

@garbas garbas commented Jun 4, 2020

Recreated a PR from #438

This is not trivially screenshotable, you have to compare by resizing the window.

I had to break out of bootstrap for the side-by-side "hero" unit, I can't see a non-hacky way full of custom rules compared to letting the flexbox layout deal with it.

Note that this also adds overflow-x to all the examples at the bottom, which otherwise would be wrapped weirdly. I find that neither options (wrapping weirdly or scrollbars) are satisfactory on wider widths, but on phone widths I know for sure scrolling horizontally those examples is better.

The asciinema box will be weird. I don't know if we can somehow make its text automagically rather than force an horizontal scroll (or worse, cutting off according to its defaults!).

This actually acts more fluidly than the bootstrap "row-fluid", in that
we can properly force a width on one element, and let the other expand
as needed.
@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2020

@garbas
Copy link
Member Author

garbas commented Jun 4, 2020

@samueldr the mobile and ipad looks good. i found only one minor glitch on everything bigger. the marging is missing between description and video (when they are side by side).

@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2020

@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2020

@garbas garbas requested a review from samueldr June 4, 2020 14:18
Copy link
Member

@davidak davidak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only tested by making the browser window small, but looks good.

Update: also good on mobile

@garbas garbas merged commit 5e21b74 into master Jun 4, 2020
@garbas garbas deleted the fix/index-horizontal-scroll branch June 4, 2020 20:06
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.

None yet

3 participants