]> source.dussan.org Git - gitea.git/commitdiff
Fix border radius on hovered secondary menu (#31089) (#31097)
authorGiteabot <teabot@gitea.io>
Mon, 27 May 2024 07:07:16 +0000 (15:07 +0800)
committerGitHub <noreply@github.com>
Mon, 27 May 2024 07:07:16 +0000 (07:07 +0000)
Backport #31089 by @silverwind

Presumably a regression from
https://github.com/go-gitea/gitea/pull/30325, these menus were showing a
border radius on hover, which is fixed with this change.

<img width="154" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/eafdc1c5-3cf5-48d1-86c4-21c58f92cfaf">

Co-authored-by: silverwind <me@silverwind.io>
web_src/css/modules/menu.css

index 76a576cd53e482b6c499e5929a6a2df639fc34eb..2f808694629ecc08de3b7b30a0173b53afc7a26d 100644 (file)
   background: var(--color-hover);
 }
 
+.ui.secondary.menu .active.item {
+  border-radius: 0.28571429rem;
+}
+
 .ui.secondary.menu .active.item,
 .ui.secondary.menu .active.item:hover {
   color: var(--color-text-dark);
   background: var(--color-active);
-  border-radius: 0.28571429rem;
 }
 
 .ui.secondary.item.menu {