Skip to content

Commit 05766d0

Browse files
GiteaBotHEREYUAsilverwind
authored
Fix:the rounded corners of the folded file are not displayed correctly (#29953) (#30177)
Backport #29953 by @HEREYUA Fix: [#29933](#29933) **Before** ![image](https://github.com/go-gitea/gitea/assets/37935145/71ec80f6-5896-4e4a-b686-4d792c11ebe2) **After** ![image](https://github.com/go-gitea/gitea/assets/37935145/81348a61-946a-4562-881d-8d873e50228f) Co-authored-by: HEREYUA <[email protected]> Co-authored-by: silverwind <[email protected]>
1 parent af81b73 commit 05766d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/css/modules/segment.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
border-radius: 0 0 0.28571429rem 0.28571429rem;
7070
}
7171

72-
.ui.segments:not(.horizontal) > .segment:only-child {
72+
.ui.segments:not(.horizontal) > .segment:only-child,
73+
.ui.segments:not(.horizontal) > .segment:has(~ .tw-hidden) { /* workaround issue with :last-child ignoring hidden elements */
7374
border-radius: 0.28571429rem;
7475
}
7576

0 commit comments

Comments
 (0)