-
Notifications
You must be signed in to change notification settings - Fork 61
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
CSS Class for Thumbnails/Images with fixed Height #152
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
just so I understand: your use case is that in your screenshot, you want the cards under "data import" and the cards under "visualizations" to be the same size, right? And the pre-existing |
Yes, exactly. The
I believe it would be best for the new class to add just the right amount of top and bottom padding to get to the specified |
@drammock, I think this should be a rather straightforward feature to implement. I might add this to one of my UpWork contracts. From what I can see, all we would need for a PR draft is:
Anything else? |
I'm not a maintainer here 😅 I'd have to dig into the source to see. But just thinking about it, your checklist looks reasonable and complete to me. |
@choldgraf, did we forget anything? |
Context
When using multiple separate grids with images, it is currently not possible to ensure all
{grid-item-card}
items have the same height. Instead, the row of the{grid-item-card}
items is determined by the image with the largest height:However, there is already a CSS class "Avatar" (
sd-avatar-
), defined instyle/_icons.scss
. This allows for{grid-item-card}
items with uniformly sized avatar images.See also my discussion in the Executablebooks repo:
sphinx-design
multiple Grids with same HeightProposal
I propose to add a CSS class "Thumbnail" that accepts a
height
parameter and, taking into account the height of the contained image, adds appropriate top/bottom padding to stretch the{grid-item-card}
item to the targetheight
.Tasks and updates
No response
The text was updated successfully, but these errors were encountered: