diff options
author | Kerwin Bryant <kerwin612@qq.com> | 2025-03-17 22:55:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 14:55:15 +0000 |
commit | e1feb438a49b194e73e504eb7018e4d50f3978cd (patch) | |
tree | 5b378cfed9447663ca11c2587a7f2c0c7666af0d | |
parent | 9d89dfe1425ac202e8b1d74ac28c5ed31b766fbd (diff) | |
download | gitea-e1feb438a49b194e73e504eb7018e4d50f3978cd.tar.gz gitea-e1feb438a49b194e73e504eb7018e4d50f3978cd.zip |
Fix file tree issues (#33916)
-rw-r--r-- | templates/repo/view_file_tree.tmpl | 4 | ||||
-rw-r--r-- | web_src/css/markup/content.css | 1 | ||||
-rw-r--r-- | web_src/css/repo/home.css | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/templates/repo/view_file_tree.tmpl b/templates/repo/view_file_tree.tmpl index ce9b2e4d11..8aed05f346 100644 --- a/templates/repo/view_file_tree.tmpl +++ b/templates/repo/view_file_tree.tmpl @@ -1,5 +1,5 @@ -<div class="flex-text-block tw-mb-2"> - <button class="ui compact tiny icon button" +<div class="flex-text-block repo-button-row"> + <button class="ui compact basic icon button" data-global-click="onRepoViewFileTreeToggle" data-toggle-action="hide" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}"> {{svg "octicon-sidebar-expand"}} diff --git a/web_src/css/markup/content.css b/web_src/css/markup/content.css index fabf5b3a8f..865ac0536a 100644 --- a/web_src/css/markup/content.css +++ b/web_src/css/markup/content.css @@ -285,7 +285,6 @@ .markup table { display: block; width: 100%; - width: max-content; max-width: 100%; overflow: auto; } diff --git a/web_src/css/repo/home.css b/web_src/css/repo/home.css index 219be77adb..69c454d611 100644 --- a/web_src/css/repo/home.css +++ b/web_src/css/repo/home.css @@ -55,7 +55,7 @@ } .repo-view-container .repo-view-file-tree-container { - flex: 0 1 15%; + flex: 0 0 15%; min-width: 0; max-height: 100vh; } |