aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/diff
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-05-02 00:08:37 +0800
committerGitHub <noreply@github.com>2023-05-01 12:08:37 -0400
commit3e7101dd64e4cd5d9ecfd4dbe0c991aacf99bf87 (patch)
tree33b7877eeab398d315b790f3565fd95c0bff56b8 /templates/repo/diff
parent5adf32b48eb97462d6164b85bd23be544732e338 (diff)
downloadgitea-3e7101dd64e4cd5d9ecfd4dbe0c991aacf99bf87.tar.gz
gitea-3e7101dd64e4cd5d9ecfd4dbe0c991aacf99bf87.zip
Improve "new-menu" (#24465)
I am not sure what "new-menu" means, but I think we need to fix these problems: 1. it shouldn't have "stackable", which makes the items stacked when width is small. the `new-menu` already has `overflow: auto` 2. `justify-content: center` doesn't work with `overflow: auto` (for small width), so use `margin: auto` * https://bhch.github.io/posts/2021/04/centring-flex-items-and-allowing-overflow-scroll/ 3. `runner-new-menu` is dead code (copying & pasting ?)
Diffstat (limited to 'templates/repo/diff')
-rw-r--r--templates/repo/diff/image_diff.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/image_diff.tmpl b/templates/repo/diff/image_diff.tmpl
index fba02ad78f..ec14ef9b1a 100644
--- a/templates/repo/diff/image_diff.tmpl
+++ b/templates/repo/diff/image_diff.tmpl
@@ -2,7 +2,7 @@
<tr>
<td colspan="2">
<div class="image-diff" data-path-before="{{.root.BeforeRawPath}}/{{PathEscapeSegments .file.OldName}}" data-path-after="{{.root.RawPath}}/{{PathEscapeSegments .file.Name}}">
- <div class="ui secondary pointing tabular top attached borderless menu stackable new-menu">
+ <div class="ui secondary pointing tabular top attached borderless menu new-menu">
<div class="new-menu-inner">
<a class="item active" data-tab="diff-side-by-side-{{.file.Index}}">{{.root.locale.Tr "repo.diff.image.side_by_side"}}</a>
{{if and .blobBase .blobHead}}