feat: switch to table
This commit is contained in:
1 parent
281ef04c43
commit
114856a052
6 files changed
+72
-26
No files matched your search
@@ -7,10 +7,44 @@
|
||||
<div class="flex flex-col gap-4">
|
||||
<h1 class="font-bold text-2xl">Modlog</h1>
|
||||
{#if data.modlog}
|
||||
<ul class="flex flex-col gap-4">
|
||||
<table class="table border-collapse">
|
||||
<colgroup>
|
||||
<col />
|
||||
<col />
|
||||
<col />
|
||||
<col />
|
||||
<col />
|
||||
</colgroup>
|
||||
<thead class="text-left">
|
||||
<tr>
|
||||
<th>Action</th>
|
||||
<th>Moderator</th>
|
||||
<th>Moderatee</th>
|
||||
<th>Community</th>
|
||||
<th>Link</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{#each data.modlog as modlog}
|
||||
<ModlogItem item={modlog} />
|
||||
{/each}
|
||||
</ul>
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style lang="postcss">
|
||||
:global(.table thead tr th) {
|
||||
@apply border border-slate-200 dark:border-zinc-800 px-4 py-2;
|
||||
}
|
||||
|
||||
:global(.table tr td) {
|
||||
@apply border border-slate-200 px-4 py-2 overflow-auto;
|
||||
}
|
||||
|
||||
:global(.dark .table tr td) {
|
||||
@apply border-zinc-800;
|
||||
}
|
||||
|
||||
:global(.dark thead tr th) {
|
||||
@apply border-zinc-800;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user