Refactor card and user page components for improved styling and layout
Publish telemt-api gateway Docker image / test (push) Successful in 25s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 2m25s

- Adjusted padding and gap settings in the card component for a cleaner appearance.
- Updated the user page layout to enhance the ScrollArea and table styling, ensuring better alignment and visual consistency.
- Improved the overall structure of the user page for a more cohesive user experience.
This commit is contained in:
Denozordec
2026-03-31 19:45:07 +07:00
parent e4e164aee9
commit d5d0326bf3
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
bind:this={ref}
data-slot="card"
data-size={size}
class={cn("ring-foreground/10 bg-card text-card-foreground gap-4 overflow-hidden rounded-xl py-4 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col", className)}
class={cn("ring-foreground/10 bg-card text-card-foreground gap-0 overflow-hidden rounded-xl py-0 text-sm ring-1 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-0 data-[size=sm]:py-0 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col", className)}
{...restProps}
>
{@render children?.()}
+7 -2
View File
@@ -460,7 +460,11 @@
</div>
</div>
{/snippet}
<ScrollArea class="max-h-[min(70vh,560px)] w-full" orientation="both">
<div class="flex w-full flex-col">
<ScrollArea
class="h-[min(70vh,560px)] w-full shrink-0"
orientation="both"
>
<Table.Root>
<Table.Header class="sticky top-0 z-10 bg-muted">
<Table.Row class="border-b border-border/80 hover:bg-transparent">
@@ -661,7 +665,7 @@
</ScrollArea>
{#if processedRows.length > usersPerPage}
<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>
{processedRows.length === 0
@@ -684,6 +688,7 @@
</div>
</div>
{/if}
</div>
</DataTableCard>
{/snippet}
</DataQueryState>