From 79aa3faf515a07cb889a453459ecdd2441c31c38 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 9 Aug 2023 13:29:31 +0800 Subject: [PATCH] Fix wrong height set for single media inside carousel status --- src/app.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.css b/src/app.css index 1635b883..6e31ac74 100644 --- a/src/app.css +++ b/src/app.css @@ -814,14 +814,14 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) { .status-carousel .content-container .content:only-child { font-size: calc(100% + 25% * max(2 - var(--content-text-weight), 0)); } -.status-carousel +/* .status-carousel .content-container[data-content-text-weight='1'] .media-container.media-eq1 { - /* LOL, this is madness, reading a value from the style attribute */ + /* LOL, this is madness, reading a value from the style attribute * / height: auto; min-height: 160px; max-height: max(160px, 50vh); -} +} */ .status-carousel.boosts-carousel { --carousel-color: var(--reblog-color); --carousel-faded-color: var(--reblog-faded-color); @@ -2181,6 +2181,6 @@ ul.link-list li a .icon { li.timeline-item-carousel { width: 95vw; max-width: calc(320px * 3.3); - transform: translateX(calc(-50% + var(--main-width)/2)); + transform: translateX(calc(-50% + var(--main-width) / 2)); } }