aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/diff
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-12-02 17:03:30 -0600
committerLauris BH <lauris@nix.lv>2019-12-03 01:03:30 +0200
commit51432ebb9c6f59c618ff34147f4b644c8bfb52f5 (patch)
treebff038fd3f7040a68c4b5d1122c715ee32b31cd3 /templates/repo/diff
parenta00d7200b12909ca4c6145f5524234c8660c84ce (diff)
downloadgitea-51432ebb9c6f59c618ff34147f4b644c8bfb52f5.tar.gz
gitea-51432ebb9c6f59c618ff34147f4b644c8bfb52f5.zip
Fix context menu overflow & review tag margin (#9231)
* Fix context menu overflow Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add review tag CSS Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates/repo/diff')
-rw-r--r--templates/repo/diff/box.tmpl2
-rw-r--r--templates/repo/diff/comments.tmpl4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl
index 088dc5718d..9f3b271e24 100644
--- a/templates/repo/diff/box.tmpl
+++ b/templates/repo/diff/box.tmpl
@@ -113,7 +113,7 @@
</h4>
<div class="ui attached unstackable table segment">
{{if ne $file.Type 4}}
- <div class="file-body file-code code-view code-diff {{if $.IsSplitStyle}}code-diff-split{{else}}code-diff-unified{{end}}">
+ <div class="file-body file-code code-view has-context-menu code-diff {{if $.IsSplitStyle}}code-diff-split{{else}}code-diff-unified{{end}}">
<table>
<tbody>
{{if $isImage}}
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl
index d86cf4077d..26029dbaa6 100644
--- a/templates/repo/diff/comments.tmpl
+++ b/templates/repo/diff/comments.tmpl
@@ -11,11 +11,11 @@
<div class="ui right actions">
{{if and .Review}}
{{if eq .Review.Type 0}}
- <div class="item tag pending">
+ <div class="item tag review pending">
{{$.root.i18n.Tr "repo.issues.review.pending"}}
</div>
{{else}}
- <div class="item tag">
+ <div class="item tag review">
{{$.root.i18n.Tr "repo.issues.review.review"}}
</div>
{{end}}