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 /> <Navbar />
</div> </div>
</header> </header>
<div className="flex flex-1 flex-col p-4 pt-0">{children}</div> <main className="flex flex-col p-4">{children}</main>
</SidebarInset> </SidebarInset>
</SidebarProvider> </SidebarProvider>
); );

View File

@ -8,13 +8,7 @@ export default async function DashboardPage() {
if (!user) redirect("/sign-in"); if (!user) redirect("/sign-in");
return ( return (
<div className="h-full flex flex-col p-4 pt-0 gap-4"> <div className="h-full px-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>
<CreateWorkspaceForm /> <CreateWorkspaceForm />
</div> </div>
); );

View File

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