mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 09:41:34 +00:00
feat(dashboard): simplify layout by removing unnecessary elements and adjusting padding
This commit is contained in:
parent
0475dab559
commit
2e5f76953a
@ -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>
|
||||
);
|
||||
|
@ -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>
|
||||
);
|
||||
|
@ -82,7 +82,6 @@ export const CreateWorkspaceForm = ({ onCancel }: CreateWorkspaceFormProps) => {
|
||||
</form>
|
||||
</Form>
|
||||
</CardContent>
|
||||
<CardContent className="p-7"></CardContent>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user