表格与页面样式调整

This commit is contained in:
2026-04-11 17:12:16 +08:00
parent 4307efae98
commit 04426ba36d
33 changed files with 239 additions and 1460 deletions

View File

@@ -8,11 +8,11 @@ function Table({ className, ...props }: React.ComponentProps<"table">) {
return (
<div
data-slot="table-container"
className="relative w-full overflow-x-auto"
className={cn("bg-card rounded-lg relative overflow-auto", className)}
>
<table
data-slot="table"
className={cn("w-full caption-bottom text-sm", className)}
className="w-full caption-bottom text-sm"
{...props}
/>
</div>
@@ -23,7 +23,7 @@ function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
return (
<thead
data-slot="table-header"
className={cn("[&_tr]:border-b", className)}
className={cn("[&_tr]:border-b-0", className)}
{...props}
/>
)