From baefdaf89db555dc098b1fac5f2f92757554c4eb Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 10 Aug 2022 15:42:31 +0200 Subject: [PATCH 1/2] Use separate class for tippy targets Previous solution that re-purposed the 'hide' class by making it !important had various unintended side-effects where jQuery .show() was not able to outweight it. Use a separate class to prevent these interactions. Fixes: https://github.com/go-gitea/gitea/issues/20747 --- templates/base/head_navbar.tmpl | 2 +- templates/repo/commit_statuses.tmpl | 2 +- templates/repo/view_file.tmpl | 2 +- web_src/js/modules/tippy.js | 7 ++++--- web_src/less/_base.less | 7 ++++++- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 5521a28a124e8..459beb5515128 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -86,7 +86,7 @@ {{.locale.Tr "active_stopwatch"}} -
+
{{svg "octicon-issue-opened" 16 "mr-3"}} diff --git a/templates/repo/commit_statuses.tmpl b/templates/repo/commit_statuses.tmpl index fe3598d755624..d45d8a1df69f6 100644 --- a/templates/repo/commit_statuses.tmpl +++ b/templates/repo/commit_statuses.tmpl @@ -1,5 +1,5 @@ {{template "repo/commit_status" .Status}} -
+
{{range .Statuses}}
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index a25fe28c97f79..34ed859d40c2d 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -120,7 +120,7 @@ {{end}} -