Asistente: fill viewport via flex chain instead of vh math

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-07-04 10:47:26 -06:00
parent d9039c76b9
commit 7ba70ae524

View File

@@ -54,7 +54,9 @@ export default function Asistente() {
}); });
return ( return (
<div className="flex flex-col h-[calc(100vh-105px)]"> // Fills the viewport via Layout's flex chain (SidebarInset > main >
// max-w wrapper are all min-h-0 flex columns) — no vh math.
<div className="flex flex-1 min-h-0 flex-col">
<div className="mb-4"> <div className="mb-4">
<h1 className="text-2xl font-bold tracking-tight flex items-center gap-2" style={{ fontFamily: "var(--font-heading)" }}> <h1 className="text-2xl font-bold tracking-tight flex items-center gap-2" style={{ fontFamily: "var(--font-heading)" }}>
<Sparkles className="w-5 h-5 text-primary" /> <Sparkles className="w-5 h-5 text-primary" />