Skip to content

Commit 79070f5

Browse files
authored
Merge pull request #2172 from basecamp/hide-when-singular-entry
Hide the 'Show history' button if there are no other entries to expand
2 parents a2c69b4 + 5949b42 commit 79070f5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

app/assets/stylesheets/comments.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@
116116
}
117117
}
118118

119+
&:nth-child(1 of &):not(:has(&) ~ * *):not(:has(&) ~ *):not(& ~ * *):not(& *) {
120+
/* Targets the first system comment in the document to effectively */
121+
/* hide the "Show history" button if there's only one entry */
122+
.comment__history {
123+
display: none;
124+
}
125+
}
126+
119127
&::before {
120128
/* Make up space for lack of avatar */
121129
content: "";

0 commit comments

Comments
 (0)