Skip to content

Commit d4b350a

Browse files
committed
Merge together adjacent ping message borders
Otherwise the border radius pinches repeatedly
1 parent a9ba566 commit d4b350a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/client/resources/web/css/main.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,15 @@ body {
288288
border-radius: 2px;
289289
background-color: #4caf50;
290290
}
291+
/*
292+
* Merge together the ::before pseudo-elements for successive ping messages by
293+
* extending ::before's height by 4 pixels.
294+
*/
295+
.message.ping + .message.ping::before {
296+
height: calc(100% + 4px);
297+
top: 0;
298+
bottom: -4px;
299+
}
291300

292301
.message a {
293302
text-decoration: none;

0 commit comments

Comments
 (0)