misc: improve responsiveness
This commit is contained in:
1 parent
a938f70a4e
commit
08c4124c5e
2 files changed
+6
-6
No files matched your search
@@ -16,10 +16,10 @@
|
|||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
<h1 class="font-bold text-2xl">Modlog</h1>
|
<h1 class="font-bold text-2xl">Modlog</h1>
|
||||||
{#if data.modlog}
|
{#if data.modlog}
|
||||||
<div class="">
|
<div style="width:100%; overflow-x: auto;">
|
||||||
<table
|
<table
|
||||||
class="table overflow-x-auto table-fixed relative"
|
class="table overflow-x-auto table-fixed relative"
|
||||||
style="width: 100%;"
|
style="min-width: 800px;"
|
||||||
>
|
>
|
||||||
<colgroup class="table-fixed">
|
<colgroup class="table-fixed">
|
||||||
<col width="20%" />
|
<col width="20%" />
|
||||||
@@ -31,8 +31,8 @@
|
|||||||
<col width="50%" />
|
<col width="50%" />
|
||||||
<col width="30%" />
|
<col width="30%" />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead class="text-left sticky top-16">
|
<thead class="text-left sticky top-0">
|
||||||
<tr class="sticky top-16 rounded-t-lg overflow-hidden">
|
<tr class="rounded-t-lg overflow-hidden">
|
||||||
<th>Time</th>
|
<th>Time</th>
|
||||||
<th>Moderator</th>
|
<th>Moderator</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
|
|||||||
@@ -31,11 +31,11 @@
|
|||||||
<span class="font-bold">
|
<span class="font-bold">
|
||||||
{#if item.actionName == 'ban'}
|
{#if item.actionName == 'ban'}
|
||||||
<span class="flex items-center gap-1 text-red-600 dark:text-red-400">
|
<span class="flex items-center gap-1 text-red-600 dark:text-red-400">
|
||||||
<Icon src={XCircle} size="16" mini class="inline" /> Ban
|
<Icon src={XCircle} size="16" mini class="inline flex-shrink-0" /> Ban
|
||||||
</span>
|
</span>
|
||||||
{:else if item.actionName == 'postRemoval' || item.actionName == 'commentRemoval'}
|
{:else if item.actionName == 'postRemoval' || item.actionName == 'commentRemoval'}
|
||||||
<span class="flex items-center gap-1 text-red-600 dark:text-red-400">
|
<span class="flex items-center gap-1 text-red-600 dark:text-red-400">
|
||||||
<Icon src={Trash} size="16" mini class="inline" /> Removal
|
<Icon src={Trash} size="16" mini class="inline flex-shrink-0" /> Removal
|
||||||
</span>
|
</span>
|
||||||
{:else}
|
{:else}
|
||||||
{item.actionName}
|
{item.actionName}
|
||||||
|
|||||||
Reference in new issue
Block a user