-
Notifications
You must be signed in to change notification settings - Fork 9
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
GH #2939: Remove small screen design for card and list-item #2949
base: master
Are you sure you want to change the base?
Conversation
chrieinv
commented
Feb 5, 2025
•
edited
Loading
edited
- Remove separate design of card and list-item for small screens
- Set min-width on content container to prevent layout issues on very narrow screens. For Grid layout min width is 290px and on List it's 460px.
- Improve display of paginator on small screens and for many pages
…guage name, other minor design adjustments
…ode, and fixed number of cards for different widths
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.
Too many assorted changes with no relation to each other. At the very least this should be split into different commits for each thing this fixes.
} | ||
|
||
min-width: 250px; | ||
min-width: 290px; // Same as min-with of main-container |
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.
This could be a varible instead of copy/pasting it everywhere. Also the comment contains a typo.
@@ -1,3 +1,8 @@ | |||
.content-list-item { | |||
min-width: 450px; | |||
min-width: 460px; // Same as min-with of main-container |
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.
Could also be a variable, and also contains a typo.
@@ -57,7 +58,7 @@ class="btn-close m-2 align-self-start" | |||
@endif | |||
|
|||
<div @class(['container-md' => !$expand, 'flex-grow-1'])> | |||
<main class="h-100 d-flex flex-column"> | |||
<main @class(['h-100', 'd-flex', 'flex-column', 'main-container-grid' => $layout === 'grid', 'main-container-list' => $layout === 'list'])> |
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 would be better if the layout component took a generic main_classes
property, rather than letting details specific to sublayouts leak into it.