From 5949b421e96f87565f3efcca5aa6baa5d72d6ce9 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 16 Dec 2025 16:09:09 -0600 Subject: [PATCH] Hide the 'Show history' button if there are no other entries to expand --- app/assets/stylesheets/comments.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/assets/stylesheets/comments.css b/app/assets/stylesheets/comments.css index 9021ee394..45c98fb13 100644 --- a/app/assets/stylesheets/comments.css +++ b/app/assets/stylesheets/comments.css @@ -116,6 +116,14 @@ } } + &:nth-child(1 of &):not(:has(&) ~ * *):not(:has(&) ~ *):not(& ~ * *):not(& *) { + /* Targets the first system comment in the document to effectively */ + /* hide the "Show history" button if there's only one entry */ + .comment__history { + display: none; + } + } + &::before { /* Make up space for lack of avatar */ content: "";