From 21ba5ca03be47a9a7051d13fcfa258bb03dd93df Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 12 Jun 2024 16:58:03 +0200 Subject: [PATCH] Fix navbar `+` menu flashing on page load (#31281) Fixes https://github.com/go-gitea/gitea/pull/31273#issuecomment-2153771331. Same method as used in https://github.com/go-gitea/gitea/pull/30215. All left-opening dropdowns need to use it method. --------- Co-authored-by: wxiaoguang Co-authored-by: Giteabot --- templates/base/head_navbar.tmpl | 6 ++--- templates/repo/issue/labels/label_list.tmpl | 24 +++++++++----------- web_src/css/modules/header.css | 6 ----- web_src/css/modules/navbar.css | 20 ++++++++++++---- web_src/js/components/DiffCommitSelector.vue | 2 +- web_src/js/modules/fomantic/dropdown.js | 16 +++++++++++++ 6 files changed, 46 insertions(+), 28 deletions(-) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 2b5224730..488992481 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -4,7 +4,7 @@ {{end}}