I'm facing a CSS challenge with the ResizablePanelGroup
component. My layout includes a header and a ResizablePanelGroup
with 4 panels. The page should take up 100% of the viewport height, and I want other components to be placed within it. Once the Header is in place, the ResizablePanelGroup
should automatically expand to fill the remaining available height without me having to specify a fixed height. Only the content inside the ResizablePanel
should become scrollable when it exceeds the panel's space.
The current layout situation is as described above, and the red area should occupy the remaining height available.
import ChatNav from "@/components/chat/ChatNav";
...
"use client";
import Chat from "@/components/chat/Chat";
...
What I hope to achieve is for the ResizablePanelGroup
to expand within the green space, with the inner panels becoming scrollable when needed due to limited space.