From bce70cc02400cf6d4fc77d5693c496587802c6a1 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 24 Apr 2024 15:11:52 +0200 Subject: [PATCH] Fix border-radius of header+segment boxes (#30667) This is a very old bug with the bottom border-radiuses not being there and the `:has` selector now makes it possible to cleanly solve it. It affects all header+segment boxes, which there are many throughout the UI: Screenshot 2024-04-23 at 20 47 21 (cherry picked from commit 3f19a6334575e1d2849999e8339f1b515cefaf1a) --- web_src/css/modules/segment.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web_src/css/modules/segment.css b/web_src/css/modules/segment.css index d4eaf633d..04543f098 100644 --- a/web_src/css/modules/segment.css +++ b/web_src/css/modules/segment.css @@ -153,6 +153,11 @@ border-top: none; } +.ui.attached.segment:has(+ .ui[class*="top attached"].header), +.ui.attached.segment:last-child { + border-radius: 0 0 0.28571429rem 0.28571429rem; +} + .ui[class*="top attached"].segment { bottom: 0; margin-bottom: 0;