mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00:00
Fix New issue button consistency
Fixes https://codeberg.org/forgejo/forgejo/issues/2613 Based on https://codeberg.org/forgejo/forgejo/issues/2613#issuecomment-1654709 - add new class `list-header-issues`; - add rules that fix button position; - use variable to keep the vertical offset constant; - fix gap for edit button. Co-authored-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
parent
45f39ce839
commit
b9dbd93ebc
5 changed files with 17 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
|||
</div>
|
||||
{{end}}
|
||||
|
||||
<div class="list-header">
|
||||
<div class="list-header list-header-issues">
|
||||
{{template "repo/issue/navbar" .}}
|
||||
{{template "repo/issue/search" .}}
|
||||
{{if not .Repository.IsArchived}}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</h1>
|
||||
<div class="issue-title-buttons">
|
||||
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}}
|
||||
<button id="edit-title" class="ui small basic button edit-button not-in-edit{{if .Issue.IsPull}} tw-mr-0{{end}}">{{ctx.Locale.Tr "repo.issues.edit"}}</button>
|
||||
<button id="edit-title" class="ui small basic button edit-button not-in-edit tw-mr-0">{{ctx.Locale.Tr "repo.issues.edit"}}</button>
|
||||
{{end}}
|
||||
{{if not .Issue.IsPull}}
|
||||
<a role="button" class="ui small primary button new-issue-button tw-mr-0" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue