Cards in a grid view

Do i need to specify the height of a card when I'm using the grid layout or should I let browser decide it , I'm using MUI grid layout
No description
6 Replies
Jochem
Jochem2d ago
unless you have a very explicit reason to set a height, you should try to avoid it setting heights is a really easy way to break your layout if the content doesn't match what you expected in testing, or if it's displayed on a different screen size if you have to, set a min-height instead of a height
ShenZo
ShenZoOP2d ago
Is it okay if i increase the space between top icon and the bottom text to reach a defult height ?
Jochem
Jochem2d ago
not really sure what you're asking
ShenZo
ShenZoOP2d ago
Would it be acceptable to adjust the spacing between the top icon and the bottom text in order to maintain a consistent default height for the card layout?
Jochem
Jochem2d ago
if you want a consistent minimum height, I'd suggest using min-height on the card and display: flex to position the items how you want them
ShenZo
ShenZoOP2d ago
Alright. Thanks
Want results from more Discord servers?
Add your server