Refactor data table components for improved styling consistency
- Removed unnecessary background color from the data table toolbar for a cleaner look. - Updated text color in sortable table headers to enhance readability and maintain a cohesive theme. - Adjusted padding and border styles in user page components for better alignment and visual consistency.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
<div
|
||||
class={cn(
|
||||
'flex flex-wrap items-center justify-between gap-2 border-b border-border bg-muted/30 px-3 py-2',
|
||||
'flex flex-wrap items-center justify-between gap-2 border-b border-border px-3 py-2',
|
||||
className
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<Table.Head
|
||||
class={cn(
|
||||
'px-3 py-2 text-left align-middle text-sm font-medium text-foreground',
|
||||
'px-3 py-2 text-left align-middle text-sm font-medium text-muted-foreground',
|
||||
numeric && 'text-right',
|
||||
className
|
||||
)}
|
||||
@@ -35,9 +35,10 @@
|
||||
type="button"
|
||||
class={cn(
|
||||
'inline-flex max-w-full items-center gap-1.5 rounded-md',
|
||||
'text-foreground/90 transition-colors',
|
||||
'text-muted-foreground transition-colors',
|
||||
'hover:bg-accent/60 hover:text-foreground',
|
||||
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45',
|
||||
active && 'text-foreground',
|
||||
numeric && 'ms-auto'
|
||||
)}
|
||||
onclick={onToggle}
|
||||
|
||||
@@ -392,9 +392,7 @@
|
||||
<DataTableCard>
|
||||
{#snippet toolbar()}
|
||||
<div class="border-b border-border">
|
||||
<div
|
||||
class="flex flex-wrap items-center justify-between gap-2 bg-muted/30 px-3 py-2.5"
|
||||
>
|
||||
<div class="flex flex-wrap items-center justify-between gap-2 px-3 py-2.5">
|
||||
<Tabs.Root bind:value={usersViewTab} class="w-full min-w-0 sm:w-auto">
|
||||
<Tabs.List class="h-auto min-h-8 w-full flex-wrap justify-start gap-1 p-1 sm:w-fit">
|
||||
<Tabs.Trigger value="all" class="shrink-0 gap-1.5 px-2.5 py-1 text-xs sm:text-sm">
|
||||
@@ -418,7 +416,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<div
|
||||
class="flex flex-wrap items-center justify-between gap-2 border-t border-border/60 bg-muted/30 px-3 py-2"
|
||||
class="flex flex-wrap items-center justify-between gap-2 border-t border-border/60 px-3 py-2"
|
||||
>
|
||||
<div class="relative max-w-sm min-w-[200px] flex-1">
|
||||
<SearchIcon
|
||||
@@ -484,7 +482,7 @@
|
||||
>Имя</SortableTh>
|
||||
<Table.Head
|
||||
class={cn(
|
||||
'px-3 py-2 text-left align-middle text-sm font-medium text-foreground',
|
||||
'px-3 py-2 text-left align-middle text-sm font-medium text-muted-foreground',
|
||||
!showColLinks && 'hidden',
|
||||
showColLinks && 'hidden sm:table-cell'
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user