Extract .actions to Table

This commit is contained in:
Marley 2023-07-13 17:03:49 -07:00
parent 6184061e46
commit 373f913367
4 changed files with 15 additions and 15 deletions

View file

@ -11,7 +11,7 @@ td {
@apply py-5 px-3 whitespace-nowrap;
@apply first-of-type:ps-0;
@apply last-of-type:pe-0 last-of-type:text-end;
@apply last-of-type:pe-0;
div {
@apply mt-1;
@ -19,10 +19,4 @@ td {
@apply first-of-type:mt-0;
}
}
.actions a {
@apply me-3;
@apply last-of-type:me-0;
}
</style>

View file

@ -14,10 +14,4 @@ th {
@apply first-of-type:ps-0;
@apply last-of-type:ps-3.5 last-of-type:pe-0 last-of-type:relative;
}
.actions a {
@apply me-3;
@apply last-of-type:me-0;
}
</style>

View file

@ -6,8 +6,18 @@
<table><slot /></table>
</template>
<style scoped lang="postcss">
<style lang="postcss">
table {
@apply w-full;
}
.actions {
@apply text-end;
a {
@apply me-3;
@apply last-of-type:me-0;
}
}
</style>

View file

@ -24,7 +24,9 @@ const patrons = [
<TableTh>Status</TableTh>
<TableTh>Checked Out</TableTh>
<TableTh>Fines</TableTh>
<TableTh></TableTh>
<TableTh actions>
<a href="#">Add New</a>
</TableTh>
</tr>
</TableThead>