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 in style/_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 Height
Proposal
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 target height.
Tasks and updates
No response
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-designmultiple Grids with same HeightProposal
I propose to add a CSS class "Thumbnail" that accepts a
heightparameter 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