diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-09-09 20:23:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 20:23:57 +0800 |
commit | 58abd4f06cb4f60777366122bc75a80fba074546 (patch) | |
tree | d7e4771a22d3533cae2066348fc4534802df198a /templates/shared | |
parent | 049b9f37181152e9721a0a7077db3fb24dca1b7a (diff) | |
download | gitea-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.tmpl | 12 |
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"}} "{{.Title}}""> - </div> + <input type="checkbox" autocomplete="off" class="issue-checkbox gt-mr-4" data-issue-id={{.ID}} aria-label="{{$.locale.Tr "repo.issues.action_check"}} "{{.Title}}""> {{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"> |