1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Improve issue list layout (#26983)

Align everything with a new layout.

* Use "baseline" for some special elements, the "flex-item-icon" is for
the issue list only at the moment and I think it should be general
enough now (but not using "flex-item-leading" anymore in this case).
* Make the labels stretch themselves.
This commit is contained in:
wxiaoguang
2023-09-09 20:23:57 +08:00
committed by GitHub
parent 049b9f3718
commit 58abd4f06c
3 changed files with 26 additions and 11 deletions

View File

@@ -2,16 +2,14 @@
{{$approvalCounts := .ApprovalCounts}}
{{range .Issues}}
<div class="flex-item">
<div class="flex-item-leading">
<div class="flex-item-icon">
{{if $.CanWriteIssuesOrPulls}}
<div class="flex-item-icon">
<input type="checkbox" autocomplete="off" class="issue-checkbox gt-mr-4" data-issue-id={{.ID}} aria-label="{{$.locale.Tr "repo.issues.action_check"}} &quot;{{.Title}}&quot;">
</div>
<input type="checkbox" autocomplete="off" class="issue-checkbox gt-mr-4" data-issue-id={{.ID}} aria-label="{{$.locale.Tr "repo.issues.action_check"}} &quot;{{.Title}}&quot;">
{{end}}
<div class="flex-item-icon">
{{template "shared/issueicon" .}}
</div>
{{template "shared/issueicon" .}}
</div>
<div class="flex-item-main">
<div class="flex-item-header">
<div class="flex-item-title">