Skip to content

Commit 2556945

Browse files
committedSep 15, 2023
style: tailwind sort
1 parent d37ffdf commit 2556945

14 files changed

+30
-30
lines changed
 

‎web/components/attachment_card.templ

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ templ AttachmentCard(props AttachmentCardProps) {
1616
if props.Attachment.IsImage() {
1717
<figure class="bg-base-content"><img src={ routes.AttachmentFile(props.Attachment.FileName()).URLString() } alt={ props.Attachment.Name }/></figure>
1818
}
19-
<div class="flex-1 p-2 flex flex-col justify-end gap-2">
19+
<div class="flex flex-1 flex-col justify-end gap-2 p-2">
2020
<p class="break-all font-bold">{ props.Attachment.Name }</p>
2121
<div class="join flex">
22-
<a class="join-item btn tooltip flex-1 flex items-center" data-tip="Envelope" href={ routes.Envelope(props.Attachment.MessageID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) }>
22+
<a class="join-item btn tooltip flex flex-1 items-center" data-tip="Envelope" href={ routes.Envelope(props.Attachment.MessageID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) }>
2323
@icons.Mail("h-5 w-5")
2424
</a>
25-
<a class="join-item btn tooltip flex-1 flex items-center" data-tip="View" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URL() }>
25+
<a class="join-item btn tooltip flex flex-1 items-center" data-tip="View" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URL() }>
2626
@icons.Eye("h-5 w-5")
2727
</a>
28-
<a class="join-item btn tooltip flex-1 flex items-center" data-tip="Download" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URLQuery("download=1") }>
28+
<a class="join-item btn tooltip flex flex-1 items-center" data-tip="Download" hx-boost="false" href={ routes.AttachmentFile(props.Attachment.FileName()).URLQuery("download=1") }>
2929
@icons.Download("h-5 w-5")
3030
</a>
3131
</div>

‎web/components/attachment_card_templ.go

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

‎web/components/envelope_tab.templ

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ templ EnvelopeTab(props EnvelopeTabProps) {
4343
{ props.Envelope.Message.Text }
4444
</pre>
4545
case routes.EnvelopeTabHTML:
46-
<iframe src={ routes.EnvelopeHTML(props.Envelope.Message.ID).URLString() } sandbox="" class="h-screen w-full rounded border-base-200 border"></iframe>
46+
<iframe src={ routes.EnvelopeHTML(props.Envelope.Message.ID).URLString() } sandbox="" class="border-base-200 h-screen w-full rounded border"></iframe>
4747
case routes.EnvelopeTabAttachments:
4848
<div class="flex flex-wrap gap-4">
4949
for _, att := range props.Envelope.Attachments {

‎web/components/envelope_tab_templ.go

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

‎web/components/footer.templ

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
)
66

77
templ Footer() {
8-
<footer class="footer p-10 bg-base-100 text-base-content border-t border-t-base-200">
8+
<footer class="footer bg-base-100 text-base-content border-t-base-200 border-t p-10">
99
<div>
1010
<a href={ templ.URL(build.Current.RepoURL) } class="link link-hover">Source code</a>
1111
<a href={ templ.URL(build.Current.LicenseURL()) } class="link link-hover">License</a>

‎web/components/footer_templ.go

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

‎web/components/recent_envelope_list.templ

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ templ RecentEnvelopeList(m meta.Meta, props RecentEnvelopeListProps) {
2121
<div>
2222
for _, env := range props.Envelopes {
2323
<a href={ routes.Envelope(env.Message.ID).URL() } class="hover:bg-base-200 border-base-200 flex flex-col gap-2 border-b p-2 first:border-t sm:flex-row">
24-
<div class="font-bold w-40">
24+
<div class="w-40 font-bold">
2525
{ helpers.TimeHumanize(env.Message.CreatedAt.Time()) }
2626
</div>
27-
<div class="flex-1 flex gap-2 justify-between items-center">
27+
<div class="flex flex-1 items-center justify-between gap-2">
2828
<div class="truncate">{ env.Message.Subject }</div>
2929
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)" }>
30+
<div class="tooltip tooltip-left flex items-center fill-current" data-tip={ strconv.Itoa(len(env.Attachments)) + " Attachment(s)" }>
3131
@icons.Attachment("h-4 w-4")
3232
</div>
3333
}

‎web/components/recent_envelope_list_templ.go

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

‎web/components/rule_form.templ

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ templ RuleFormCreate(props RuleFormCreateProps) {
4848
<legend>Endpoints</legend>
4949
for i, end := range props.Endpoints {
5050
<div class="form-control">
51-
<label class="cursor-pointer label">
51+
<label class="label cursor-pointer">
5252
<span class="label-text">{ end.Name }</span>
5353
<input type="checkbox" class="toggle" name="endpoints" value={ strconv.FormatInt(end.ID, 10) } checked?={ props.EndpointsSelections[i] } />
5454
</label>
@@ -105,7 +105,7 @@ templ RuleFormUpdate(props RuleFormUpdateProps) {
105105
<legend class="label-text">Endpoints</legend>
106106
for i, end := range props.Endpoints {
107107
<div class="form-control">
108-
<label class="cursor-pointer label">
108+
<label class="label cursor-pointer">
109109
<span class="label-text">{ end.Name }</span>
110110
<input disabled?={ props.Rule.Internal } type="checkbox" class="toggle" name="endpoints" value={ strconv.FormatInt(end.ID, 10) } checked?={ props.EndpointsSelections[i] } />
111111
</label>

‎web/components/rule_form_templ.go

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

‎web/components/table_order_th.templ

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func tableOrderTHAscending(enable, ascending bool) string {
2121
}
2222

2323
templ TableOrderTH(props TableOrderTHProps) {
24-
<a class="w-full flex gap-2 items-center" href={ routes.EnvelopeList().URLQuery(helpers.Query(props.Query, "order", props.Field, "ascending", tableOrderTHAscending(props.Order == props.Field, props.Ascending))) }>
24+
<a class="flex w-full items-center gap-2" href={ routes.EnvelopeList().URLQuery(helpers.Query(props.Query, "order", props.Field, "ascending", tableOrderTHAscending(props.Order == props.Field, props.Ascending))) }>
2525
{ children... }
2626
if props.Ascending {
2727
<div class={ templ.KV("opacity-0", props.Order != props.Field) }>

‎web/components/table_order_th_templ.go

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

‎web/pages/envelope.templ

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ templ envelopeListView(m meta.Meta, props envelopeListViewProps) {
122122
})
123123
</div>
124124
<div class="overflow-x-auto">
125-
<table class="table table-pin-cols">
125+
<table class="table-pin-cols table">
126126
<thead>
127127
<tr>
128128
<th></th>
@@ -162,7 +162,7 @@ templ envelopeListView(m meta.Meta, props envelopeListViewProps) {
162162
<tbody>
163163
for _, env := range props.EnvelopeRequestResult.Envelopes {
164164
<tr>
165-
<th class="w-0 whitespace-nowrap z-10">
165+
<th class="z-10 w-0 whitespace-nowrap">
166166
{ strconv.FormatInt(env.Message.ID, 10) }
167167
</th>
168168
<td class="w-0 whitespace-nowrap">
@@ -185,7 +185,7 @@ templ envelopeListView(m meta.Meta, props envelopeListViewProps) {
185185
<th class="w-0 whitespace-nowrap">
186186
<div class="flex flex-row justify-end gap-2">
187187
if len(env.Attachments) != 0 {
188-
<a href={ routes.Envelope(env.Message.ID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) } class="tooltip tooltip-left fill-current flex items-center" data-tip={ strconv.Itoa(len(env.Attachments)) + " Attachment(s)" }>
188+
<a href={ routes.Envelope(env.Message.ID).URLQuery("tab=" + routes.EnvelopeTabAttachments.String()) } class="tooltip tooltip-left flex items-center fill-current" data-tip={ strconv.Itoa(len(env.Attachments)) + " Attachment(s)" }>
189189
@icons.Attachment("h-4 w-4")
190190
</a>
191191
}

‎web/pages/envelope_templ.go

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

0 commit comments

Comments
 (0)
Please sign in to comment.