aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsebastian-sauer <sauer.sebastian@gmail.com>2023-11-17 19:35:51 +0100
committerGitHub <noreply@github.com>2023-11-17 18:35:51 +0000
commite31c6cfe6e30341c502302d1c0a03138f8bf5c9f (patch)
tree7a0bad3af6f6f0d173cd1d46dd840be4fd74c12b /templates
parentf63b1166970705454f62059cf46f3fbc6f0c8871 (diff)
downloadgitea-e31c6cfe6e30341c502302d1c0a03138f8bf5c9f.tar.gz
gitea-e31c6cfe6e30341c502302d1c0a03138f8bf5c9f.zip
Fix Show/hide filetree button on small displays (#27881)
the gt-df's display:flex !important did override the display:none on small displays --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/diff/box.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index e72ac1eeae..1224bbe84c 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -3,7 +3,7 @@
<div class="diff-detail-box diff-box">
<div class="gt-df gt-ac gt-fw">
{{if $showFileTree}}
- <button class="diff-toggle-file-tree-button gt-df gt-ac not-mobile" data-show-text="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
+ <button class="diff-toggle-file-tree-button not-mobile btn interact-fg" data-show-text="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
{{svg "octicon-sidebar-collapse" 20 "icon gt-hidden"}}
{{svg "octicon-sidebar-expand" 20 "icon gt-hidden"}}
@@ -89,7 +89,7 @@
{{end}}
<div id="diff-container">
{{if $showFileTree}}
- <div id="diff-file-tree" class="gt-hidden"></div>
+ <div id="diff-file-tree" class="gt-hidden not-mobile"></div>
<script>
if (diffTreeVisible) document.getElementById('diff-file-tree').classList.remove('gt-hidden');
</script>