From dced28df0a7ecab9544a1b5cac53528b6ea052fc Mon Sep 17 00:00:00 2001 From: Gusted Date: Thu, 8 Jun 2023 14:22:52 +0200 Subject: [PATCH] [UI] Fix misalligned icons - On the pull request page, two icons were misaligned vertically with their text part. - This patch adds the simple flexbox trick with `align-items: center` to vertically center the children elements and adds `gt-ml-2` to the text, to add space between icon and text that would otherwise be removed because of `display: flex`. (cherry picked from commit 5c991c1043a6f3ae3616841202bebf153effc6be) --- .../repo/issue/view_content/update_branch_by_merge.tmpl | 6 +++--- web_src/js/components/PullRequestMergeForm.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/repo/issue/view_content/update_branch_by_merge.tmpl b/templates/repo/issue/view_content/update_branch_by_merge.tmpl index 84df244d8d..3734f9a2f0 100644 --- a/templates/repo/issue/view_content/update_branch_by_merge.tmpl +++ b/templates/repo/issue/view_content/update_branch_by_merge.tmpl @@ -1,9 +1,9 @@ {{if and (gt $.Issue.PullRequest.CommitsBehind 0) (not $.Issue.IsClosed) (not $.Issue.PullRequest.IsChecking) (not $.IsPullFilesConflicted) (not $.IsPullRequestBroken)}}
-
- {{svg "octicon-alert"}} - {{$.locale.Tr "repo.pulls.outdated_with_base_branch"}} +
+ {{svg "octicon-alert"}} + {{$.locale.Tr "repo.pulls.outdated_with_base_branch"}}
{{if and $.UpdateAllowed $.UpdateByRebaseAllowed}} diff --git a/web_src/js/components/PullRequestMergeForm.vue b/web_src/js/components/PullRequestMergeForm.vue index d6ddbef817..c2bd57f001 100644 --- a/web_src/js/components/PullRequestMergeForm.vue +++ b/web_src/js/components/PullRequestMergeForm.vue @@ -63,9 +63,9 @@
-