summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-10-22 21:35:58 +0800
committerGitHub <noreply@github.com>2023-10-22 15:35:58 +0200
commit48e3aec86228ec4617419c354b565708d5db341c (patch)
tree1e8135cec9062ca4bf55637492cc093d848adb28 /templates/repo
parentaabcf2d7ad247fb0bf8131ebdf8400fcf5292828 (diff)
downloadgitea-48e3aec86228ec4617419c354b565708d5db341c.tar.gz
gitea-48e3aec86228ec4617419c354b565708d5db341c.zip
Enable followCursor for language stats bar (#27713) (#27739)
Backport #27713 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/27600 ![](https://github.com/go-gitea/gitea/assets/115237/96743d90-0712-4f13-84ec-66f84e6ed2d7) Also tested together with https://github.com/go-gitea/gitea/pull/27704, works well. Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/sub_menu.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl
index 56c94f1b65..8edb0c1516 100644
--- a/templates/repo/sub_menu.tmpl
+++ b/templates/repo/sub_menu.tmpl
@@ -38,7 +38,7 @@
</div>
<a class="ui segment language-stats show-panel toggle" data-panel=".repository-summary > .sub-menu">
{{range .LanguageStats}}
- <div class="bar" style="width: {{.Percentage}}%; background-color: {{.Color}}" data-tooltip-placement="top" data-tooltip-content={{.Language}}></div>
+ <div class="bar" style="width: {{.Percentage}}%; background-color: {{.Color}}" data-tooltip-placement="top" data-tooltip-content={{.Language}} data-tooltip-follow-cursor="horizontal"></div>
{{end}}
</a>
{{end}}