fix: overflow container fix

This commit is contained in:
2026-09-18 07:16:53 +08:00
parent 8aa10d38b1
commit 89dfd21adb
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ export default function MessagesSection({ chatId, maxCount = 50 }: Props) {
return (
<section
className={`flex min-w-0 flex-1 flex-col bg-muted ${chatId ? "flex" : "hidden md:flex"}`}
className={`flex min-w-0 h-full flex-1 flex-col bg-muted ${chatId ? "flex" : "hidden md:flex"}`}
>
<header className="flex items-center justify-between border-b border-border bg-card px-4 py-3 sm:px-6">
<div className="flex min-w-0 items-center gap-3">
+2 -2
View File
@@ -10,10 +10,10 @@ export default function Page() {
const chatId = router.query.get("chatId");
return (
<main className="bg-background text-foreground flex overflow-hidden h-screen max-h-dvh">
<main className="bg-background text-foreground flex overflow-hidden h-screen max-h-dvh items-stretch">
{/* <div className="mx-auto flex h-dvh max-w-360 overflow-hidden bg-card shadow-xl sm:h-[calc(100dvh-2rem)] sm:rounded-2xl lg:h-[calc(100dvh-3rem)]"> */}
<aside
className={`flex w-full shrink-0 flex-col border-r border-border bg-card md:w-85 lg:w-1/3 max-w-md ${chatId ? "hidden md:flex" : "flex"}`}
className={`flex w-full h-full shrink-0 flex-col border-r border-border bg-card md:w-85 lg:w-1/3 max-w-md ${chatId ? "hidden md:flex" : "flex"}`}
>
{/* <header className="flex items-center justify-between border-b border-border px-5 py-5">
<div className="flex items-center gap-3">