From 43122ca984e5c411cb87140e3bf2597489aab956 Mon Sep 17 00:00:00 2001 From: HEREYUA <37935145+HEREYUA@users.noreply.github.com> Date: Fri, 29 Mar 2024 23:39:46 +0800 Subject: [PATCH] Fix:the rounded corners of the folded file are not displayed correctly (#29953) Fix: [#29933](https://github.com/go-gitea/gitea/issues/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 Conflicts: - web_src/css/modules/segment.css Ported by adding the new selector with a larger radius, keeping the existing one with ours. --- web_src/css/modules/segment.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web_src/css/modules/segment.css b/web_src/css/modules/segment.css index 963b2209b0..d4eaf633d7 100644 --- a/web_src/css/modules/segment.css +++ b/web_src/css/modules/segment.css @@ -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);