]> source.dussan.org Git - gitea.git/commitdiff
Fix border-radius of header+segment boxes (#30667)
authorsilverwind <me@silverwind.io>
Wed, 24 Apr 2024 13:11:52 +0000 (15:11 +0200)
committerGitHub <noreply@github.com>
Wed, 24 Apr 2024 13:11:52 +0000 (13:11 +0000)
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:

<img width="1017" alt="Screenshot 2024-04-23 at 20 47 21"
src="https://github.com/go-gitea/gitea/assets/115237/870fe352-cc38-4bd6-bfe6-9fe8c3066f92">

web_src/css/modules/segment.css

index bbd39c385fe83376b44453f93cd15dff8a580869..994ac1779a28936e3385c0155975749beda05275 100644 (file)
   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;