Skip to content

Commit

Permalink
Fix:the rounded corners of the folded file are not displayed correctly (
Browse files Browse the repository at this point in the history
#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 <37935145+HEREYUA@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
  • Loading branch information
3 people authored Mar 29, 2024
1 parent af81b73 commit 05766d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_src/css/modules/segment.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
border-radius: 0 0 0.28571429rem 0.28571429rem;
}

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

Expand Down

0 comments on commit 05766d0

Please sign in to comment.