Skip to content

Commit 577c481

Browse files
fix(web): recent envelopes row
1 parent ba95c0c commit 577c481

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

web/components/recent_envelope_list.templ

+8-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ templ RecentEnvelopeList(m meta.Meta, props RecentEnvelopeListProps) {
2424
<div class="font-bold w-40">
2525
{ helpers.TimeHumanize(env.Message.CreatedAt.Time()) }
2626
</div>
27-
<div class="flex-1 truncate">{ env.Message.Subject }</div>
28-
if len(env.Attachments) != 0 {
29-
<div class="flex items-center tooltip tooltip-left fill-current" data-tip={ strconv.Itoa(len(env.Attachments)) + " Attachment(s)" }>
30-
@icons.Attachment("h-4 w-4")
31-
</div>
32-
}
27+
<div class="flex-1 flex gap-2 justify-between items-center">
28+
<div class="truncate">{ env.Message.Subject }</div>
29+
if len(env.Attachments) != 0 {
30+
<div class="flex items-center tooltip tooltip-left fill-current" data-tip={ strconv.Itoa(len(env.Attachments)) + " Attachment(s)" }>
31+
@icons.Attachment("h-4 w-4")
32+
</div>
33+
}
34+
</div>
3335
</a>
3436
}
3537
</div>

web/components/recent_envelope_list_templ.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)