LuccaSA / lucca-front

documentation
https://prisme.lucca.io
MIT License
40 stars 4 forks source link

[UserTile] When there is no userTile-content-info, element should shrink #3200

Closed BertrandPodevin closed 1 week ago

BertrandPodevin commented 3 weeks ago

When there is no userTile-content-info, the element keep it's size, wich could trigger alignment issues :

With userTile-content-info Image

Without userTile-content-info Image

The element should be allowed to shrink Image

This can be done by replacing

.userTile .avatar {
    height: calc(var(--components-userTile-title-lineHeight) + var(--components-userTile-info-lineHeight));
}

with

.userTile .avatar {
    max-height: calc(var(--components-userTile-title-lineHeight) + var(--components-userTile-info-lineHeight));
}
jeremie-lucca commented 1 week ago

https://github.com/LuccaSA/lucca-front/pull/3220