-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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(ui): ensure all dashboard cards render the same size #17612
Conversation
} | ||
} | ||
|
||
@media screen and (min-width: $cf-grid--breakpoint-md) { | ||
.dashboards-card-grid { | ||
grid-template-columns: 1fr 1fr 1fr; | ||
grid-template-columns: minmax(33.3333%, 1fr) minmax(33.3333%, 1fr) minmax(33.3333%, 1fr); |
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.
minmax
is like the CSS version of the interrobang
Also, fr
???
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.
It's a CSS Grid thing. Stands for "fractional unit" and in this context controls how big the columns are. So 1fr 1fr 1fr
means divide up into 3 even columns.
Using minmax()
ensures that the columns don't exceed that size
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.
omg thank you for this.. i've had like 4 false starts already
Fixed the failing e2e test and filed this issue in the process: influxdata/clockface#478 |
Closes #16966
All cards are the same height regardless of contents or position
Cards with a long name don't change width and truncate the name