-
{{svg "octicon-alert" 16}}
- {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}}
- {{if .UpdateAllowed}}
-
- {{end}}
+
+
+
+ {{svg "octicon-alert" 16}}
+ {{$.i18n.Tr "repo.pulls.outdated_with_base_branch"}}
+
+
+ {{if .UpdateAllowed}}
+
+ {{end}}
+
{{end}}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 756ad6d6a8a39..19c204759740c 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -995,8 +995,17 @@
> .merge-section {
background-color: #f7f7f7;
- .item + .item {
- padding-top: .5rem;
+ .item {
+ padding: .25rem 0;
+ }
+
+ .item-section {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0;
+ margin-top: -.25rem;
+ margin-bottom: -.25rem;
}
.divider {
From 4cb9b913037e58df248eea55f113b642e080ea20 Mon Sep 17 00:00:00 2001
From: a1012112796 <1012112796@qq.com>
Date: Mon, 8 Jun 2020 21:30:57 +0800
Subject: [PATCH 4/6] fix lint
---
web_src/less/_repository.less | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 19c204759740c..c0bb56e36eeda 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -996,9 +996,9 @@
background-color: #f7f7f7;
.item {
- padding: .25rem 0;
+ padding: .25rem 0;
}
-
+
.item-section {
display: flex;
align-items: center;
From f08f37ec530d37cccb58e40a39b450c0ea93b807 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E6=99=BA=E8=B6=85?= <1012112796@qq.com>
Date: Tue, 9 Jun 2020 01:06:33 +0800
Subject: [PATCH 5/6] Update templates/repo/issue/view_content/pull.tmpl
Co-authored-by: silverwind
---
templates/repo/issue/view_content/pull.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl
index 4aa0171b9a8ea..dc4874d243b75 100644
--- a/templates/repo/issue/view_content/pull.tmpl
+++ b/templates/repo/issue/view_content/pull.tmpl
@@ -389,7 +389,7 @@
{{if .UpdateAllowed}}
From d82c2294c092afe0ec54c3e4b9affc218ad5ffcd Mon Sep 17 00:00:00 2001
From: a1012112796 <1012112796@qq.com>
Date: Tue, 9 Jun 2020 01:11:06 +0800
Subject: [PATCH 6/6] Apply review suggestion
---
templates/repo/issue/view_content/pull.tmpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl
index dc4874d243b75..c66e7734a6aff 100644
--- a/templates/repo/issue/view_content/pull.tmpl
+++ b/templates/repo/issue/view_content/pull.tmpl
@@ -203,7 +203,7 @@
{{if .UpdateAllowed}}