TootPreviewCard: minor layout adjustment
All checks were successful
/ depoly (push) Successful in 1m6s
All checks were successful
/ depoly (push) Successful in 1m6s
Remove the image's centre in compact layout. This helps the feeling when the text is too long. I am still finding ways to limit the card height.
This commit is contained in:
parent
a24319911b
commit
c628397675
1 changed files with 1 additions and 1 deletions
|
@ -117,6 +117,7 @@
|
||||||
color: var(--tutu-color-secondary-text-on-surface);
|
color: var(--tutu-color-secondary-text-on-surface);
|
||||||
transition: color 220ms var(--tutu-anim-curve-std), background-color 220ms var(--tutu-anim-curve-std);
|
transition: color 220ms var(--tutu-anim-curve-std), background-color 220ms var(--tutu-anim-curve-std);
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
>img {
|
>img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -151,7 +152,6 @@
|
||||||
|
|
||||||
>img:first-child {
|
>img:first-child {
|
||||||
grid-row: 1 / 3;
|
grid-row: 1 / 3;
|
||||||
height: 100%;
|
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue