Merge pull request '[v8.0/forgejo] Improve button gap consistency in repos' (#4397) from bp-v8.0/forgejo-c19222b into v8.0/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4397 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
b755fe8473
6 changed files with 12 additions and 14 deletions
|
@ -23,7 +23,7 @@
|
|||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="diff-detail-actions">
|
||||
<div class="diff-detail-actions button-row">
|
||||
{{if and .PageIsPullFiles $.SignedUserID (not .IsArchived) (not .DiffNotAvailable)}}
|
||||
<div class="not-mobile tw-flex tw-items-center tw-flex-col tw-whitespace-nowrap tw-mr-1">
|
||||
<label for="viewed-files-summary" id="viewed-files-summary-label" data-text-changed-template="{{ctx.Locale.Tr "repo.pulls.viewed_files_label"}}">
|
||||
|
@ -146,7 +146,7 @@
|
|||
{{end}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="diff-file-header-actions tw-flex tw-items-center tw-gap-1 tw-flex-wrap">
|
||||
<div class="diff-file-header-actions tw-flex tw-items-center button-row tw-flex-wrap">
|
||||
{{if $showFileViewToggle}}
|
||||
<div class="ui compact icon buttons">
|
||||
<button class="ui tiny basic button file-view-toggle" data-toggle-selector="#diff-source-{{$file.NameHash}}" data-tooltip-content="{{ctx.Locale.Tr "repo.file_view_source"}}">{{svg "octicon-code"}}</button>
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
{{template "repo/diff/comments" dict "root" $ "comments" .comments}}
|
||||
</ui>
|
||||
</div>
|
||||
<div class="tw-flex tw-justify-end tw-items-center tw-flex-wrap tw-mt-2">
|
||||
<div class="ui buttons tw-mr-1">
|
||||
<div class="button-row tw-flex tw-justify-end tw-items-center tw-flex-wrap tw-mt-2">
|
||||
<div class="ui buttons">
|
||||
<button class="ui icon tiny basic button previous-conversation">
|
||||
{{svg "octicon-arrow-up" 12 "icon"}} {{ctx.Locale.Tr "repo.issues.previous"}}
|
||||
</button>
|
||||
|
@ -56,7 +56,7 @@
|
|||
</button>
|
||||
{{end}}
|
||||
{{if and $.SignedUserID (not $.Repository.IsArchived)}}
|
||||
<button class="comment-form-reply ui primary tiny labeled icon button tw-ml-1 tw-mr-0">
|
||||
<button class="comment-form-reply ui primary tiny labeled icon button">
|
||||
{{svg "octicon-reply" 16 "reply icon tw-mr-1"}}{{ctx.Locale.Tr "repo.diff.comment.reply"}}
|
||||
</button>
|
||||
{{end}}
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{{if not (or .IsBeingCreated .IsBroken)}}
|
||||
<div class="repo-buttons">
|
||||
<div class="repo-buttons button-row">
|
||||
{{if $.RepoTransfer}}
|
||||
<form method="post" action="{{$.RepoLink}}/action/accept_transfer?redirect_to={{$.RepoLink}}">
|
||||
{{$.CsrfTokenHtml}}
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="code-comment-buttons-buttons">
|
||||
<div class="code-comment-buttons-buttons button-row">
|
||||
{{if and $.CanMarkConversation $isNotPending}}
|
||||
<button class="ui tiny basic button resolve-conversation" data-origin="timeline" data-action="{{if not $resolved}}Resolve{{else}}UnResolve{{end}}" data-comment-id="{{(index .comments 0).ID}}" data-update-url="{{$.RepoLink}}/issues/resolve_conversation">
|
||||
{{if $resolved}}
|
||||
|
@ -126,7 +126,7 @@
|
|||
</button>
|
||||
{{end}}
|
||||
{{if and $.SignedUserID (not $.Repository.IsArchived)}}
|
||||
<button class="comment-form-reply ui primary tiny labeled icon button tw-ml-1 tw-mr-0">
|
||||
<button class="comment-form-reply ui primary tiny labeled icon button">
|
||||
{{svg "octicon-reply" 16 "reply icon tw-mr-1"}}{{ctx.Locale.Tr "repo.diff.comment.reply"}}
|
||||
</button>
|
||||
{{end}}
|
||||
|
|
|
@ -601,7 +601,7 @@ td .commit-summary {
|
|||
align-items: center;
|
||||
}
|
||||
|
||||
.repository.view.issue .button-row,
|
||||
.issue-title .button-row,
|
||||
.repository.releases .button-row {
|
||||
display: flex;
|
||||
}
|
||||
|
@ -610,7 +610,7 @@ td .commit-summary {
|
|||
.repository.view.issue .issue-title {
|
||||
flex-direction: column;
|
||||
}
|
||||
.repository.view.issue .button-row {
|
||||
.issue-title .button-row {
|
||||
width: 100%;
|
||||
margin-top: .5rem;
|
||||
justify-content: space-between;
|
||||
|
@ -1539,7 +1539,6 @@ td .commit-summary {
|
|||
.diff-detail-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25em;
|
||||
justify-content: end;
|
||||
}
|
||||
|
||||
|
@ -1574,7 +1573,7 @@ td .commit-summary {
|
|||
}
|
||||
|
||||
.repository .diff-detail-box .ui.button {
|
||||
padding: 0 12px;
|
||||
padding: 0 1.125em;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
|
@ -1596,7 +1595,7 @@ td .commit-summary {
|
|||
}
|
||||
|
||||
.repository .diff-box .header:not(.resolved-placeholder) .button {
|
||||
padding: 0 12px;
|
||||
padding: 0 1.125em;
|
||||
flex: 0 0 auto;
|
||||
margin-right: 0;
|
||||
height: 30px;
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
word-break: keep-all;
|
||||
gap: 0.25em;
|
||||
}
|
||||
|
||||
.repo-buttons .ui.labeled.button > .label:hover {
|
||||
|
|
Loading…
Reference in a new issue