-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
small-and-fast: make bar-graph table responsive #1907
Conversation
assets/sass/application.scss is the main entry point for all sub stylesheets. Recently we've added `.bar-chart` to that file, while it's only used on one of the /about pages. We're about to add more styling to the /about pages, so split out it's styling into a separate file.
116de7b
to
b53f845
Compare
I've tweaked the values a bit, so there are max 6 graphs per line. Screenshots are thus not fully up-to-date. |
@dscho it's now deployed to https://to1ne.github.io/git-scm.com/about/small-and-fast. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @To1ne!
How about adding a Playwright test to verify that the formerly-right-most Clone
diagram is visible even on an iPhone (e.g. after the side-button tests)?
@dscho Well, I'm failing to figure how to use that. (It doesn't help I really dislike Javascript and the whole ecosystem around it) |
The bar charts are shown in a table. This doesn't work well when viewed on mobile, because the screen is a lot narrower than the content. Use CSS grid to responsively show bar charts on a single line depending on the available horizontal space. This change includes a Playwright test that opens the page on an iPhone X and scrolls to the text right below the graphs to see if the last graph then is within the viewport.
b53f845
to
77d0c63
Compare
@dscho Playwright test added. |
Hrm. I think what you need to do is to run
Awesome! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work, thank you so much!
The bar charts are shown in a table. This doesn't work well when viewed
on mobile, because the screen is a lot narrower than the content.
Use CSS grid to responsively show bar charts on a single line depending
on the available horizontal space.
Screenshots
Screen width: 1200px
Screen width: 939px (just below 940px breakproint where sidebar is hidden)
Screen width: 877px
Screen width: 876px
Screen width: 762px
Screen width: 761px
Screen width: 647px
Screen width: 600px
Screen width: 375px (iPhone 13mini according to web inspector)