]> source.dussan.org Git - gitea.git/commitdiff
Fix merge button dropdown triangle alignment (#14041)
authorsilverwind <me@silverwind.io>
Sat, 19 Dec 2020 03:57:25 +0000 (04:57 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Dec 2020 03:57:25 +0000 (22:57 -0500)
https://github.com/go-gitea/gitea/pull/14028 had improved dropdown
triangle display for buttons with text but had regressed it for buttons
without. Fix this by adding a class to prevent horizontal margin adjustment.

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
templates/repo/issue/view_content/pull.tmpl
web_src/less/_base.less

index 06b8162fda1561d870e04b4997205e4b37f772ac..34eaa83eb2d5510aa0789c329b16f02509128dda 100644 (file)
                                                                                </span>
                                                                        </button>
                                                                        {{if gt $prUnit.PullRequestsConfig.AllowedMergeStyleCount 1}}
-                                                                               <div class="ui dropdown icon button">
+                                                                               <div class="ui dropdown icon button no-text">
                                                                                        {{svg "octicon-triangle-down" 14 "dropdown icon"}}
                                                                                        <div class="menu">
                                                                                                {{if $prUnit.PullRequestsConfig.AllowMerge}}
index c07c76eb928d169b6e408c34b38a29e82487323e..e49b1c5bbb966d2c2260548c675f54b2a2e3e4e8 100644 (file)
@@ -1792,6 +1792,10 @@ table th[data-sortt-desc] {
 .ui.selection.dropdown > .dropdown.icon {
   top: 0 !important;
 }
+.ui.dropdown.no-text > .dropdown.icon {
+  margin-left: 0 !important;
+  margin-right: 0 !important;
+}
 
 /* limit width of all direct dropdown menu children */
 /* https://github.com/go-gitea/gitea/pull/10835 */