feat: update sidebar and files page layout
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
|||||||
|
|
||||||
export function DashboardSidebar() {
|
export function DashboardSidebar() {
|
||||||
return (
|
return (
|
||||||
<Sidebar collapsible="icon">
|
<Sidebar variant="inset" collapsible="icon">
|
||||||
<SidebarHeader>
|
<SidebarHeader>
|
||||||
<SidebarMenu>
|
<SidebarMenu>
|
||||||
<SidebarMenuItem>
|
<SidebarMenuItem>
|
||||||
|
@@ -213,13 +213,14 @@ export function FileTableContent() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="overflow-hidden rounded-md border">
|
<div className="overflow-hidden">
|
||||||
<Table>
|
<Table>
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
{table.getHeaderGroups().map((headerGroup) => (
|
{table.getHeaderGroups().map((headerGroup) => (
|
||||||
<TableRow key={headerGroup.id}>
|
<TableRow className="px-4" key={headerGroup.id}>
|
||||||
{headerGroup.headers.map((header) => (
|
{headerGroup.headers.map((header) => (
|
||||||
<TableHead
|
<TableHead
|
||||||
|
className="first:pl-4 last:pr-4"
|
||||||
key={header.id}
|
key={header.id}
|
||||||
style={{ width: header.getSize() }}
|
style={{ width: header.getSize() }}
|
||||||
>
|
>
|
||||||
@@ -246,6 +247,7 @@ export function FileTableContent() {
|
|||||||
>
|
>
|
||||||
{row.getVisibleCells().map((cell) => (
|
{row.getVisibleCells().map((cell) => (
|
||||||
<TableCell
|
<TableCell
|
||||||
|
className="first:pl-4 last:pr-4"
|
||||||
key={cell.id}
|
key={cell.id}
|
||||||
style={{ width: cell.column.getSize() }}
|
style={{ width: cell.column.getSize() }}
|
||||||
>
|
>
|
||||||
|
@@ -33,7 +33,7 @@ export function FilesPage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<header className="flex py-2 shrink-0 items-center gap-2 border-b px-4 w-full">
|
<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>
|
<Breadcrumb>
|
||||||
<BreadcrumbList>
|
<BreadcrumbList>
|
||||||
<BreadcrumbItem>
|
<BreadcrumbItem>
|
||||||
@@ -46,7 +46,7 @@ export function FilesPage() {
|
|||||||
<UploadFileButton />
|
<UploadFileButton />
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div className="p-4 w-full">
|
<div className="w-full">
|
||||||
<FileTable />
|
<FileTable />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
Reference in New Issue
Block a user