-
Notifications
You must be signed in to change notification settings - Fork 53
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 ratings columns on smaller screens #279
Fix ratings columns on smaller screens #279
Conversation
Fix ratings columns
@L-e-x-o-n can you please review if you have spare time thanks. |
Yeah your screenshot looks wrong. I'll take a look. |
@L-e-x-o-n can you try in incognito mode. Maybe css is getting cached? Also please check you have the latest from this pr/branch. In my PR, each row should only take up one line and the arrow should be on same row. |
Tried, on latest PR, same thing :( Firefox |
I tested with Firefox again (latest version 125.0.2 and it works). can you do an experiment for me? Open up
Then modify to this:
Do you get the new color for the map heading? |
Doesn't work, even with cleared cache... |
Part of the local setup is sass install
@L-e-x-o-n Can you run that and try again? |
No changed :( |
EDIT: Nevermind geekingfrog; Adam has tested it below. |
Thanks Adam. I wonder why css is not working on Lexon's machine. |
It breaks down under 1080px for viewport width, but otherwise it's a net improvement, can fix that (mobile view?) later. |
assets/scss/custom/_styles.scss
Outdated
|
||
//Map column for Ratings table | ||
.table-ratings tr th:nth-child(1) { | ||
width: 200px; |
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.
not a fan of putting dimensions in pixels, since they don't adapt with font size. So if the user changes its font size, it gets out of whack easily. The default font size is 16px, that means 200px is 12.5rem
.
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.
Have updated to use REM and confirmed it looks the same.
Currently in production it looks like this for small screens:
This ticket gives a better layout for smaller screens by adjusting the column widths and padding. Also I changed the uncertainty delta color to grey because it will always go down and users might be confused why that column is always red (and it's not bad to go down).
Test Steps
Go here http://localhost:4000/battle/ratings
Test on resolutions such as
1360 x 768
1280 x 1024
(or similar if you don't have any of these screen sizes)