mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 00:01:24 +00:00
[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 5c991c1043
)
This commit is contained in:
parent
b76c67c99f
commit
dced28df0a
|
@ -1,9 +1,9 @@
|
||||||
{{if and (gt $.Issue.PullRequest.CommitsBehind 0) (not $.Issue.IsClosed) (not $.Issue.PullRequest.IsChecking) (not $.IsPullFilesConflicted) (not $.IsPullRequestBroken)}}
|
{{if and (gt $.Issue.PullRequest.CommitsBehind 0) (not $.Issue.IsClosed) (not $.Issue.PullRequest.IsChecking) (not $.IsPullFilesConflicted) (not $.IsPullRequestBroken)}}
|
||||||
<div class="ui divider"></div>
|
<div class="ui divider"></div>
|
||||||
<div class="item item-section">
|
<div class="item item-section">
|
||||||
<div class="item-section-left">
|
<div class="item-section-left gt-df gt-ac">
|
||||||
<i class="icon icon-octicon">{{svg "octicon-alert"}}</i>
|
<i class="icon icon-octicon gt-df gt-ac">{{svg "octicon-alert"}}</i>
|
||||||
{{$.locale.Tr "repo.pulls.outdated_with_base_branch"}}
|
<span class="gt-ml-2">{{$.locale.Tr "repo.pulls.outdated_with_base_branch"}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-section-right">
|
<div class="item-section-right">
|
||||||
{{if and $.UpdateAllowed $.UpdateByRebaseAllowed}}
|
{{if and $.UpdateAllowed $.UpdateByRebaseAllowed}}
|
||||||
|
|
|
@ -63,9 +63,9 @@
|
||||||
<div v-if="!showActionForm" class="gt-df">
|
<div v-if="!showActionForm" class="gt-df">
|
||||||
<!-- the merge button -->
|
<!-- the merge button -->
|
||||||
<div class="ui buttons merge-button" :class="[mergeForm.emptyCommit ? 'grey' : mergeForm.allOverridableChecksOk ? 'green' : 'red']" @click="toggleActionForm(true)">
|
<div class="ui buttons merge-button" :class="[mergeForm.emptyCommit ? 'grey' : mergeForm.allOverridableChecksOk ? 'green' : 'red']" @click="toggleActionForm(true)">
|
||||||
<button class="ui button">
|
<button class="ui button gt-df gt-ac">
|
||||||
<svg-icon name="octicon-git-merge"/>
|
<svg-icon name="octicon-git-merge"/>
|
||||||
<span class="button-text">
|
<span class="button-text gt-ml-2">
|
||||||
{{ mergeStyleDetail.textDoMerge }}
|
{{ mergeStyleDetail.textDoMerge }}
|
||||||
<template v-if="autoMergeWhenSucceed">
|
<template v-if="autoMergeWhenSucceed">
|
||||||
{{ mergeForm.textAutoMergeButtonWhenSucceed }}
|
{{ mergeForm.textAutoMergeButtonWhenSucceed }}
|
||||||
|
|
Loading…
Reference in a new issue