diff options
author | silverwind <me@silverwind.io> | 2022-08-10 16:47:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 22:47:28 +0800 |
commit | d751e35d81d3e9e953ac35e868b9714ba4502f67 (patch) | |
tree | 5e6a3042319003707420a7a50b62bf9285a868f1 /templates | |
parent | 58de07e5fd14c23dd4c4a315b8c5b3fb3219f66a (diff) | |
download | gitea-d751e35d81d3e9e953ac35e868b9714ba4502f67.tar.gz gitea-d751e35d81d3e9e953ac35e868b9714ba4502f67.zip |
Use separate class for tippy targets (#20742)
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.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/head_navbar.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/commit_statuses.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 5521a28a12..459beb5515 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -86,7 +86,7 @@ <span class="sr-mobile-only">{{.locale.Tr "active_stopwatch"}}</span> </span> </a> - <div class="active-stopwatch-popup hide"> + <div class="active-stopwatch-popup tippy-target"> <div class="df ac"> <a class="stopwatch-link df ac" href="{{.ActiveStopwatch.IssueLink}}"> {{svg "octicon-issue-opened" 16 "mr-3"}} diff --git a/templates/repo/commit_statuses.tmpl b/templates/repo/commit_statuses.tmpl index fe3598d755..d45d8a1df6 100644 --- a/templates/repo/commit_statuses.tmpl +++ b/templates/repo/commit_statuses.tmpl @@ -1,5 +1,5 @@ <a class="ui link commit-statuses-trigger vm">{{template "repo/commit_status" .Status}}</a> -<div class="ui commit-statuses-popup commit-statuses hide"> +<div class="ui commit-statuses-popup commit-statuses tippy-target"> <div class="ui relaxed list divided"> {{range .Statuses}} <div class="ui item singular-status df"> diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index a25fe28c97..34ed859d40 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -120,7 +120,7 @@ {{end}} </tbody> </table> - <div class="code-line-menu ui vertical pointing menu hide"> + <div class="code-line-menu ui vertical pointing menu tippy-target"> {{if $.Permission.CanRead $.UnitTypeIssues}} <a class="item ref-in-new-issue" href="{{.RepoLink}}/issues/new?body={{.Repository.HTMLURL}}{{printf "/src/commit/" }}{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}" rel="nofollow noindex">{{.locale.Tr "repo.issues.context.reference_issue"}}</a> {{end}} |