feat: update sidebar and files page layout

This commit is contained in:
2025-09-16 00:24:10 +00:00
parent ad1800861e
commit 882f1a4900
3 changed files with 7 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ import {
export function DashboardSidebar() {
return (
<Sidebar collapsible="icon">
<Sidebar variant="inset" collapsible="icon">
<SidebarHeader>
<SidebarMenu>
<SidebarMenuItem>

View File

@@ -213,13 +213,14 @@ export function FileTableContent() {
}
return (
<div className="overflow-hidden rounded-md border">
<div className="overflow-hidden">
<Table>
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
<TableRow key={headerGroup.id}>
<TableRow className="px-4" key={headerGroup.id}>
{headerGroup.headers.map((header) => (
<TableHead
className="first:pl-4 last:pr-4"
key={header.id}
style={{ width: header.getSize() }}
>
@@ -246,6 +247,7 @@ export function FileTableContent() {
>
{row.getVisibleCells().map((cell) => (
<TableCell
className="first:pl-4 last:pr-4"
key={cell.id}
style={{ width: cell.column.getSize() }}
>

View File

@@ -33,7 +33,7 @@ export function FilesPage() {
return (
<>
<header className="flex py-2 shrink-0 items-center gap-2 border-b px-4 w-full">
<SidebarTrigger className="-ml-1" />
<SidebarTrigger className="-ml-1.5" />
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
@@ -46,7 +46,7 @@ export function FilesPage() {
<UploadFileButton />
</div>
</header>
<div className="p-4 w-full">
<div className="w-full">
<FileTable />
</div>
</>