From 9cac63c37db81de49b564363ab3a5aa0f62ce1d8 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 25 Jan 2024 22:13:38 +0800 Subject: [PATCH] Experimental more-harsh hashtag stuffing collapsing --- src/components/status.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/status.css b/src/components/status.css index ff8300f..d7170a9 100644 --- a/src/components/status.css +++ b/src/components/status.css @@ -1243,6 +1243,14 @@ body:has(#modal-container .carousel) .status .media img:hover { -webkit-box-orient: vertical; white-space: normal; } +/* Collapse possible hashtag stuffing */ +/* If >= 9 hashtags, collapse */ +/* TODO: lower the threshold one day */ +.status:not(.large) p:has(.hashtag:nth-child(9)) { + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; +} .media-figure-multiple { margin: 0;