summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-07 20:25:52 +0200
committerGitHub <noreply@github.com>2020-06-07 19:25:52 +0100
commit880ae454db47b7a736024df230d115f83a108b02 (patch)
tree6f47c296bc17e5b5921fed064817353f36e39c6e
parent479ef5c3794ed47ac02771816b1c88c9a509cbb7 (diff)
downloadgitea-880ae454db47b7a736024df230d115f83a108b02.tar.gz
gitea-880ae454db47b7a736024df230d115f83a108b02.zip
Work around fomantic 2.8.5 bugs (#11767)
Work around fomantic 2.8.5 bugs Closes #11759 Related fomantic/Fomantic-UI#1372 and fomantic/Fomantic-UI#1473
-rw-r--r--templates/repo/issue/view_content/pull.tmpl2
-rw-r--r--web_src/less/_base.less8
2 files changed, 9 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl
index a5d753ac09..3a89cd184f 100644
--- a/templates/repo/issue/view_content/pull.tmpl
+++ b/templates/repo/issue/view_content/pull.tmpl
@@ -283,7 +283,7 @@
</button>
<div class="ui dropdown icon button">
<i class="dropdown icon"></i>
- <div class="menu">
+ <div class="menu left">
{{if $prUnit.PullRequestsConfig.AllowMerge}}
<div class="item{{if eq .MergeStyle "merge"}} active selected{{end}}" data-do="merge">{{$.i18n.Tr "repo.pulls.merge_pull_request"}}</div>
{{end}}
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index 3756f8686e..e8bb407a0b 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -1048,6 +1048,14 @@ i.icon.centerlock {
top: 1.45em;
}
+// temporary workaround for fomantic 2.8.5 bug
+// https://github.com/go-gitea/gitea/pull/11767
+i.icon,
+i.icons {
+ vertical-align: unset;
+ line-height: unset;
+}
+
.ui.label {
padding: .3em .5em;
}