fix: force re-render when switching between mobile/desktop layout (#112)

This commit is contained in:
Dayuan Jiang
2025-12-05 23:45:57 +09:00
committed by GitHub
parent 9e781005af
commit dd27d034e2

View File

@@ -74,6 +74,7 @@ export default function Home() {
return ( return (
<div className="h-screen bg-background relative overflow-hidden"> <div className="h-screen bg-background relative overflow-hidden">
<ResizablePanelGroup <ResizablePanelGroup
key={isMobile ? "mobile" : "desktop"}
direction={isMobile ? "vertical" : "horizontal"} direction={isMobile ? "vertical" : "horizontal"}
className="h-full" className="h-full"
> >