From ae6f0ff9d8005884268e63d9209b15930174f33d Mon Sep 17 00:00:00 2001 From: thislight Date: Thu, 22 Aug 2024 17:11:45 +0800 Subject: [PATCH] TootPreviewCard: minor layout adjustment 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. --- src/timelines/toot.module.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timelines/toot.module.css b/src/timelines/toot.module.css index 92c4143..59aac3e 100644 --- a/src/timelines/toot.module.css +++ b/src/timelines/toot.module.css @@ -117,6 +117,7 @@ color: var(--tutu-color-secondary-text-on-surface); transition: color 220ms var(--tutu-anim-curve-std), background-color 220ms var(--tutu-anim-curve-std); padding-bottom: 8px; + overflow: hidden; >img { max-width: 100%; @@ -151,7 +152,6 @@ >img:first-child { grid-row: 1 / 3; - height: 100%; object-fit: contain; }