From 9792700f30b87e764be21ca0c947c99223cd17ff Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 29 Jan 2024 01:38:53 +0800 Subject: [PATCH] Fix wrong CSS Add more checks --- src/components/status.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/status.css b/src/components/status.css index fa972d7..b4a62a2 100644 --- a/src/components/status.css +++ b/src/components/status.css @@ -1246,7 +1246,15 @@ body:has(#modal-container .carousel) .status .media img:hover { /* Collapse possible hashtag stuffing */ /* If >= 9 hashtags, collapse */ /* TODO: lower the threshold one day */ -.status:not(.large) p:not(.hashtag-stuffing):has(.hashtag:nth-child(9)) { +.status:not(.large, .contextual .status) + p:not(.hashtag-stuffing):has(.hashtag:nth-of-type(1)):has( + .hashtag:nth-of-type(2) + ):has(.hashtag:nth-of-type(3)):has(.hashtag:nth-of-type(4)):has( + .hashtag:nth-of-type(5) + ):has(.hashtag:nth-of-type(6)):has(.hashtag:nth-of-type(7)):has( + .hashtag:nth-of-type(8) + ):has(.hashtag:nth-of-type(9)) { + overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;