From 852f7090f6b6f17ceb5dc934f44edc47493c94fe Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 2 Jan 2024 12:27:39 +0800 Subject: [PATCH] Status card style changes --- src/app.css | 4 ++++ src/components/status.css | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/app.css b/src/app.css index 73a7851f..a8ba5ecd 100644 --- a/src/app.css +++ b/src/app.css @@ -944,6 +944,10 @@ 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)); + + &:has(.status-card) { + font-size: unset; + } } /* .status-carousel .content-container[data-content-text-weight='1'] diff --git a/src/components/status.css b/src/components/status.css index ec8e83a4..ecfd0c9d 100644 --- a/src/components/status.css +++ b/src/components/status.css @@ -208,7 +208,7 @@ max-height: 160px !important; overflow: clip; } -.status.small:not(.status-carousel .status) +.status.small:not(.status-carousel .status, .status.large .status) .status-card :is(.content, .poll, .media-container) { max-height: 80px !important; @@ -959,6 +959,11 @@ height: auto; max-height: 60vh; } +.status.status-card .media-container.media-eq1 .media { + max-height: 160px; + width: auto; + max-width: min(var(--width), 100%); +} /* Special media borders */ .status .media-container.media-eq2 .media:first-of-type { border-radius: var(--media-radius) var(--media-radius-inner)