Skip to content

Commit

Permalink
Fix:the rounded corners of the folded file are not displayed correctl…
Browse files Browse the repository at this point in the history
…y (#29953)

Fix:    [#29933](go-gitea/gitea#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: silverwind <me@silverwind.io>
Conflicts:
	- web_src/css/modules/segment.css
	  Ported by adding the new selector with a larger radius,
          keeping the existing one with ours.
  • Loading branch information
HEREYUA authored and algernon committed Apr 7, 2024
1 parent efc2f53 commit 43122ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web_src/css/modules/segment.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
.ui.segments:not(.horizontal) > .segment:only-child {
border-radius: 0.214285717rem;
}
.ui.segments:not(.horizontal) > .segment:has(~ .tw-hidden) { /* workaround issue with :last-child ignoring hidden elements */
border-radius: 0.28571429rem;
}

.ui.segments > .ui.segments {
border-top: 1px solid var(--color-secondary);
Expand Down

0 comments on commit 43122ca

Please sign in to comment.