aboutsummaryrefslogtreecommitdiffstats
path: root/templates/shared
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-09 20:23:57 +0800
committerGitHub <noreply@github.com>2023-09-09 20:23:57 +0800
commit58abd4f06cb4f60777366122bc75a80fba074546 (patch)
treed7e4771a22d3533cae2066348fc4534802df198a /templates/shared
parent049b9f37181152e9721a0a7077db3fb24dca1b7a (diff)
downloadgitea-58abd4f06cb4f60777366122bc75a80fba074546.tar.gz
gitea-58abd4f06cb4f60777366122bc75a80fba074546.zip
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.
Diffstat (limited to 'templates/shared')
-rw-r--r--templates/shared/issuelist.tmpl12
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/shared/issuelist.tmpl b/templates/shared/issuelist.tmpl
index 8e91a58d51..80d4e3dd85 100644
--- a/templates/shared/issuelist.tmpl
+++ b/templates/shared/issuelist.tmpl
@@ -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">