feat(dashboard): simplify layout by removing unnecessary elements and adjusting padding

This commit is contained in:
ngc2207 2025-02-04 20:38:47 +08:00
parent 0475dab559
commit 2e5f76953a
3 changed files with 2 additions and 9 deletions

View File

@ -23,7 +23,7 @@ export default function DashboardLayout({ children }: DashboardLayoutProps) {
<Navbar />
</div>
</header>
<div className="flex flex-1 flex-col p-4 pt-0">{children}</div>
<main className="flex flex-col p-4">{children}</main>
</SidebarInset>
</SidebarProvider>
);

View File

@ -8,13 +8,7 @@ export default async function DashboardPage() {
if (!user) redirect("/sign-in");
return (
<div className="h-full flex flex-col p-4 pt-0 gap-4">
<div className="flex-col hidden lg:flex">
<h1 className="text-2xl font-semibold">Home</h1>
<p className="text-muted-foreground">
Monitor all of your projects and tasks here
</p>
</div>
<div className="h-full px-4">
<CreateWorkspaceForm />
</div>
);

View File

@ -82,7 +82,6 @@ export const CreateWorkspaceForm = ({ onCancel }: CreateWorkspaceFormProps) => {
</form>
</Form>
</CardContent>
<CardContent className="p-7"></CardContent>
</Card>
);
};