Skip to content

Commit a7ddce1

Browse files
committed
fix card
1 parent f74c643 commit a7ddce1

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

templates/repo/issue/card.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@
6363

6464
{{if or .Labels .Assignees}}
6565
<div class="issue-card-bottom">
66-
<div class="flex-text-inline tw-flex-wrap tw-overflow-hidden">
67-
<div class="labels-list">
66+
<div class="issue-card-bottom-part labels-list">
6867
{{range .Labels}}
6968
<a target="_blank" href="{{$.Issue.Repo.Link}}/issues?labels={{.ID}}">{{ctx.RenderUtils.RenderLabel .}}</a>
7069
{{end}}
71-
</div>
7270
</div>
73-
<div class="issue-card-assignees">
71+
{{if .Assignees}}
72+
<div class="issue-card-bottom-part tw-justify-end">
7473
{{range .Assignees}}
7574
<a target="_blank" href="{{.HomeLink}}" data-tooltip-content="{{ctx.Locale.Tr "repo.projects.column.assigned_to"}} {{.Name}}">{{ctx.AvatarUtils.Avatar . 24}}</a>
7675
{{end}}
7776
</div>
77+
{{end}}
7878
</div>
7979
{{end}}
8080
{{end}}

web_src/css/repo/issue-card.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@
2929
display: flex;
3030
width: 100%;
3131
justify-content: space-between;
32-
gap: 0.25em;
32+
gap: 1em;
3333
}
3434

35-
.issue-card-assignees {
35+
.issue-card-bottom-part {
3636
display: flex;
37+
flex: 1;
3738
align-items: center;
3839
gap: 0.25em;
39-
justify-content: end;
4040
flex-wrap: wrap;
41+
overflow: hidden;
42+
max-width: fit-content;
43+
max-height: fit-content;
4144
}

0 commit comments

Comments
 (0)