fix: resolve layout overflow by adding min-width constraints and update Next.js route type path

This commit is contained in:
poyrazavsever
2026-06-07 01:22:44 +03:00
parent 990c7a21b6
commit 1e8c66176b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ export function DashboardShell({ children, user }: DashboardShellProps) {
</div>
) : null}
<div className="flex flex-1 flex-col">
<div className="flex flex-1 flex-col min-w-0">
<header className="sticky top-0 z-30 flex h-14 items-center justify-between border-b border-border bg-background/95 px-4 backdrop-blur lg:hidden">
<Link href="/" className="flex items-center gap-2 font-semibold">
<Image
@@ -93,7 +93,7 @@ export function DashboardShell({ children, user }: DashboardShellProps) {
</Button>
</header>
<main className="flex-1 p-4 lg:p-8">{children}</main>
<main className="flex-1 p-4 lg:p-8 min-w-0">{children}</main>
</div>
</div>
</div>
+1 -1
View File
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
import "./.next/dev/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.