Refactor IPs table layout for improved styling and structure
Publish telemt-api gateway Docker image / test (push) Successful in 26s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 2m24s

- Adjusted the ScrollArea and surrounding div structure to enhance layout consistency.
- Updated class properties for better visual alignment and responsiveness in the IPs table component.
This commit is contained in:
Denozordec
2026-03-31 20:49:37 +07:00
parent dbbbf41a1a
commit d6e3b4561b
+7 -2
View File
@@ -627,7 +627,11 @@ $effect(() => {
>Сброс</Button> >Сброс</Button>
</DataTableToolbar> </DataTableToolbar>
{/snippet} {/snippet}
<ScrollArea class="max-h-[min(75vh,560px)] w-full" orientation="both"> <div class="flex w-full flex-col">
<ScrollArea
class="h-[min(75vh,560px)] w-full shrink-0"
orientation="both"
>
<Table.Root> <Table.Root>
<Table.Header class="sticky top-0 z-10 bg-muted"> <Table.Header class="sticky top-0 z-10 bg-muted">
<Table.Row class="border-b border-border/80 hover:bg-transparent"> <Table.Row class="border-b border-border/80 hover:bg-transparent">
@@ -707,7 +711,7 @@ $effect(() => {
</ScrollArea> </ScrollArea>
{#if displayedIpRows.length > ipsPerPage} {#if displayedIpRows.length > ipsPerPage}
<div <div
class="flex flex-wrap items-center justify-between gap-2 border-t px-4 py-3 text-sm text-muted-foreground" class="relative z-10 flex shrink-0 flex-wrap items-center justify-between gap-2 border-t border-border bg-card px-4 py-3 text-sm text-muted-foreground"
> >
<span> <span>
{displayedIpRows.length === 0 {displayedIpRows.length === 0
@@ -730,6 +734,7 @@ $effect(() => {
</div> </div>
</div> </div>
{/if} {/if}
</div>
</DataTableCard> </DataTableCard>
{/snippet} {/snippet}
</DataQueryState> </DataQueryState>