style(admin): make product table list scrollable with sticky header
All checks were successful
Staging Build / build (push) Successful in 3m27s
All checks were successful
Staging Build / build (push) Successful in 3m27s
This commit is contained in:
@@ -211,8 +211,9 @@ export function ProductList({ initialProducts, categories }: { initialProducts:
|
||||
</div>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="overflow-auto max-h-[600px] border border-slate-200 dark:border-white/10 rounded-lg scrollbar-thin">
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableHeader className="sticky top-0 bg-white dark:bg-slate-900/95 backdrop-blur-sm z-10">
|
||||
<TableRow className="border-slate-200 dark:border-white/10 hover:bg-slate-50 dark:hover:bg-white/5">
|
||||
<TableHead className="text-slate-700 dark:text-white font-bold">Name</TableHead>
|
||||
<TableHead className="text-slate-700 dark:text-white font-bold">Basispreis</TableHead>
|
||||
@@ -245,6 +246,7 @@ export function ProductList({ initialProducts, categories }: { initialProducts:
|
||||
)}
|
||||
</TableBody>
|
||||
</Table>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user