🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(ui): only mount right drawer layout when active (#14025)
Nikita Kabardin00f541126c4c
diff --git a/web/src/components/layouts/ResizableDesktopLayout.tsx b/web/src/components/layouts/ResizableDesktopLayout.tsxdeleted file mode 100644index b67ad644ac..0000000000--- a/web/src/components/layouts/ResizableDesktopLayout.tsx+++ /dev/null@@ -1,148 +0,0 @@-import { type ReactNode, useId, useLayoutEffect } from "react";-import {- ResizableHandle,- ResizablePanel,- ResizablePanelGroup,- useDefaultLayout,- usePanelRef,-} from "@/src/components/ui/resizable";--interface ResizableDesktopLayoutProps {- mainContent: ReactNode;- sidebarContent: ReactNode;- open: boolean;- showHandle?: boolean;- defaultMainSize?: number;- defaultSidebarSize?: number;- minMainSize?: number;- maxSidebarSize?: number;- className?: string;- sidebarPosition?: "left" | "right";- persistId?: string;-}--const MAIN_PANEL_ID = "main";-const SIDEBAR_PANEL_ID = "sidebar";--const NOOP_LAYOUT_STORAGE = {- getItem: () => null,- setItem: () => {},-};--/**- * Reusable component to show/hide resizable panels with a consistent DOM tree.- * Always renders the same DOM tree to prevent remounting children and preserve their state.- */-export function ResizableDesktopLayout({- mainContent,- sidebarContent,- open,- showHandle = true,- defaultMainSize = 70,- defaultSidebarSize = 30,- minMainSize = 30,- maxSidebarSize = 60,- className = "flex h-full w-full",- sidebarPosition = "right",- persistId,-}: ResizableDesktopLayoutProps) {- const instanceId = useId().replace(/[^a-zA-Z0-9_-]/g, "");- const groupId = persistId- ? `resizable-layout-${persistId}`- : `resizable-layout-${instanceId}`;-- const storage =- persistId && typeof window !== "undefined"- ? sessionStorage- : NOOP_LAYOUT_STORAGE;-- const panelIds =- sidebarPosition === "left"- ? [SIDEBAR_PANEL_ID, MAIN_PANEL_ID]- : [MAIN_PANEL_ID, SIDEBAR_PANEL_ID];-- const { defaultLayout, onLayoutChanged } = useDefaultLayout({- id: groupId,- panelIds,- storage,- });-- const sidebarPanelRef = usePanelRef();-- useLayoutEffect(() => {- const panel = sidebarPanelRef.current;- if (!panel) return;-- if (open) {- // v4 react-resizable-panel `expand()` depends on internal collapsed bookkeeping.- // Fallback to default size if the panel remains effectively closed.- if (panel.isCollapsed()) {- panel.expand();- }- if (panel.getSize().asPercentage < 2) {- panel.resize(`${defaultSidebarSize}%`);- }- } else {- panel.collapse();- }- }, [open, sidebarPanelRef, defaultSidebarSize]);-- return (- <ResizablePanelGroup- id={groupId}- orientation="horizontal"- className={className}- defaultLayout={defaultLayout}- onLayoutChanged={persistId ? onLayoutChanged : undefined}- >- {sidebarPosition === "left" && (- <ResizablePanel- id={SIDEBAR_PANEL_ID}- panelRef={sidebarPanelRef}- defaultSize={`${defaultSidebarSize}%`}- minSize="0%"- maxSize={`${maxSidebarSize}%`}- collapsible={true}- collapsedSize="0%"- className={open ? "visible" : "invisible"}- style={{ overscrollBehaviorY: "none" }}- >- {sidebarContent}- </ResizablePanel>- )}- {sidebarPosition === "left" && open && showHandle && (- <ResizableHandle withHandle />- )}- <ResizablePanel- id={MAIN_PANEL_ID}- defaultSize={`${defaultMainSize}%`}- minSize={`${minMainSize}%`}- >- <div- className="relative h-full w-full overflow-auto"- style={{ overscrollBehaviorY: "none" }}- >- {mainContent}- </div>- </ResizablePanel>- {sidebarPosition === "right" && open && showHandle && (- <ResizableHandle withHandle />- )}- {sidebarPosition === "right" && (- <ResizablePanel- id={SIDEBAR_PANEL_ID}- panelRef={sidebarPanelRef}- defaultSize={`${defaultSidebarSize}%`}- minSize="0%"- maxSize={`${maxSidebarSize}%`}- collapsible={true}- collapsedSize="0%"- className={open ? "visible" : "invisible"}- style={{ overscrollBehaviorY: "none" }}- >- {sidebarContent}- </ResizablePanel>- )}- </ResizablePanelGroup>- );-}diff --git a/web/src/components/layouts/app-layout/components/ResizableContent.tsx b/web/src/components/layouts/app-layout/components/ResizableContent.tsxdeleted file mode 100644index e6b34dff8e..0000000000--- a/web/src/components/layouts/app-layout/components/ResizableContent.tsx+++ /dev/null@@ -1,93 +0,0 @@-/**- * Resizable content component for support drawer- * Desktop: Resizable panels with programmatic control- * Mobile: Bottom drawer- *- * Extracted from original layout.tsx (lines 414-493)- */--import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";-import { type PropsWithChildren } from "react";-import { useMediaQuery } from "react-responsive";-import dynamic from "next/dynamic";-import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";--const MobileLayout = dynamic(- () =>- import("@/src/components/layouts/MobileDrawer").then((mod) => ({- default: mod.MobileDrawer,- })),- {- ssr: false,- },-);-const DesktopLayout = dynamic(- () =>- import("@/src/components/layouts/ResizableDesktopLayout").then((mod) => ({- default: mod.ResizableDesktopLayout,- })),- {- ssr: false,- },-);-const SupportDrawer = dynamic(- () =>- import("@/src/features/support-chat/SupportDrawer").then((mod) => ({- default: mod.SupportDrawer,- })),- {- ssr: false,- },-);-const ControlledInAppAgentDrawer = dynamic(- () =>- import("@/src/features/in-app-agent/components").then((mod) => ({- default: mod.ControlledInAppAgentDrawer,- })),- {- ssr: false,- },-);--/**- * Resizable content for support drawer on the right side of the screen (desktop).- * On mobile, renders a Drawer instead of a resizable sidebar.- *- * Key optimization: Always renders ResizablePanelGroup on desktop to prevent- * remounting children when drawer opens/closes. Uses refs for programmatic control.- */-export function ResizableContent({- aiAgentEnabled,- children,-}: PropsWithChildren<{ aiAgentEnabled?: boolean }>) {- const isDesktop = useMediaQuery({ query: "(min-width: 768px)" });- const { open: supportOpen } = useSupportDrawer();- const { open: aiAgentOpen, setOpen: setAiAgentOpen } = useInAppAiAgent();- const showAiAgent = Boolean(aiAgentEnabled && aiAgentOpen);-- if (!isDesktop) {- return (- <MobileLayout aiAgentEnabled={aiAgentEnabled}>{children}</MobileLayout>- );- }-- return (- <DesktopLayout- mainContent={children}- sidebarContent={- showAiAgent ? (- <ControlledInAppAgentDrawer onClose={() => setAiAgentOpen(false)} />- ) : (- <SupportDrawer />- )- }- open={showAiAgent || supportOpen}- showHandle={showAiAgent}- defaultMainSize={showAiAgent ? 72 : 70}- defaultSidebarSize={showAiAgent ? 28 : 30}- minMainSize={30}- maxSidebarSize={60}- persistId={showAiAgent ? "assistant-sidebar" : undefined}- />- );-}diff --git a/web/src/components/layouts/app-layout/right-drawer/AppContentWithRightDrawer.tsx b/web/src/components/layouts/app-layout/right-drawer/AppContentWithRightDrawer.tsxnew file mode 100644index 0000000000..ed77fb89ac--- /dev/null+++ b/web/src/components/layouts/app-layout/right-drawer/AppContentWithRightDrawer.tsx@@ -0,0 +1,93 @@+import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";+import { type PropsWithChildren } from "react";+import { useMediaQuery } from "react-responsive";+import dynamic from "next/dynamic";+import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";+import Spinner from "@/src/components/design-system/Spinner/Spinner";+import { ResizableSplitLayout } from "@/src/components/ui/resizable-split-layout";++const DynamicMobileRightDrawer = dynamic(+ () =>+ import("./MobileRightDrawer").then((mod) => ({+ default: mod.MobileRightDrawer,+ })),+ {+ ssr: false,+ },+);++const DynamicSupportDrawer = dynamic(+ () =>+ import("@/src/features/support-chat/SupportDrawer").then((mod) => ({+ default: mod.SupportDrawer,+ })),+ {+ ssr: false,+ loading: () => <RightDrawerLoadingFallback />,+ },+);++const DynamicControlledInAppAgentDrawer = dynamic(+ () =>+ import("@/src/features/in-app-agent/components").then((mod) => ({+ default: mod.ControlledInAppAgentDrawer,+ })),+ {+ ssr: false,+ loading: () => <RightDrawerLoadingFallback />,+ },+);++function RightDrawerLoadingFallback() {+ return (+ <div className="flex h-full w-full items-center justify-center">+ <Spinner size="md" variant="muted" />+ </div>+ );+}++/**+ * App-shell content wrapper that attaches the support / AI assistant right drawer.+ *+ * Desktop keeps a stable split wrapper so routed page content does not remount+ * when a right drawer opens or closes. Mobile uses a bottom drawer.+ */+export function AppContentWithRightDrawer({+ aiAgentEnabled,+ children,+}: PropsWithChildren<{ aiAgentEnabled?: boolean }>) {+ const isDesktop = useMediaQuery({ query: "(min-width: 768px)" });+ const { open: supportOpen } = useSupportDrawer();+ const { open: aiAgentOpen, setOpen: setAiAgentOpen } = useInAppAiAgent();+ const showAiAgent = Boolean(aiAgentEnabled && aiAgentOpen);+ const showRightDrawer = showAiAgent || supportOpen;++ if (!isDesktop) {+ return (+ <DynamicMobileRightDrawer aiAgentEnabled={aiAgentEnabled}>+ {children}+ </DynamicMobileRightDrawer>+ );+ }++ const rightDrawerContent = showAiAgent ? (+ <DynamicControlledInAppAgentDrawer onClose={() => setAiAgentOpen(false)} />+ ) : supportOpen ? (+ <DynamicSupportDrawer />+ ) : null;++ return (+ <ResizableSplitLayout+ primaryContent={children}+ secondaryContent={rightDrawerContent}+ open={showRightDrawer}+ showHandle={showAiAgent}+ defaultPrimarySize={showAiAgent ? 72 : 70}+ defaultSecondarySize={showAiAgent ? 28 : 30}+ minPrimarySize={30}+ maxSecondarySize={60}+ keepSecondaryMounted={false}+ persistId={showAiAgent ? "assistant-sidebar" : undefined}+ />+ );+}diff --git a/web/src/components/layouts/MobileDrawer.tsx b/web/src/components/layouts/app-layout/right-drawer/MobileRightDrawer.tsxsimilarity index 96%rename from web/src/components/layouts/MobileDrawer.tsxrename to web/src/components/layouts/app-layout/right-drawer/MobileRightDrawer.tsxindex 716e718391..214a4f7cc4 100644--- a/web/src/components/layouts/MobileDrawer.tsx+++ b/web/src/components/layouts/app-layout/right-drawer/MobileRightDrawer.tsx@@ -11,7 +11,7 @@ import { SupportDrawer } from "@/src/features/support-chat/SupportDrawer";import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";import { ControlledInAppAgentDrawer } from "@/src/features/in-app-agent/components";-export function MobileDrawer({+export function MobileRightDrawer({aiAgentEnabled,children,}: PropsWithChildren<{ aiAgentEnabled?: boolean }>) {@@ -44,7 +44,6 @@ export function MobileDrawer({<div className="flex w-full items-center justify-center pt-3"><div className="bg-muted h-2 w-20 rounded-full" /></div>- {/* sr-only for screen readers and accessibility */}<DrawerTitle className="sr-only">{showAiAgent ? "AI Assistant" : "Support"}</DrawerTitle>diff --git a/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx b/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsxindex 31e6fbcc20..cf690a8cbf 100644--- a/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx+++ b/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx@@ -10,7 +10,7 @@ import { SidebarProvider, SidebarInset } from "@/src/components/ui/sidebar";import { AppSidebar } from "@/src/components/nav/app-sidebar";import { Toaster } from "@/src/components/ui/sonner";import { TopBannerProvider } from "@/src/features/top-banner";-import { ResizableContent } from "../components/ResizableContent";+import { AppContentWithRightDrawer } from "../right-drawer/AppContentWithRightDrawer";import useIsFeatureEnabled from "@/src/features/feature-flags/hooks/useIsFeatureEnabled";import { ThemeToggle } from "@/src/features/theming/ThemeToggle";import {@@ -188,9 +188,9 @@ export function AuthenticatedLayout({userNavProps={userNavProps}/><SidebarInset className="h-screen-with-banner max-w-full md:peer-data-[state=collapsed]:w-[calc(100vw-var(--sidebar-width-icon))] md:peer-data-[state=expanded]:w-[calc(100vw-var(--sidebar-width))]">- <ResizableContent aiAgentEnabled={assistantEnabled}>+ <AppContentWithRightDrawer aiAgentEnabled={assistantEnabled}>{children}- </ResizableContent>+ </AppContentWithRightDrawer><Toaster visibleToasts={1} /><CommandMenu mainNavigation={navigation.navigation} /></SidebarInset>diff --git a/web/src/components/layouts/overview-panel.tsx b/web/src/components/layouts/overview-panel.tsxindex 5b625e9b3b..8a0cef831e 100644--- a/web/src/components/layouts/overview-panel.tsx+++ b/web/src/components/layouts/overview-panel.tsx@@ -6,7 +6,7 @@ import { PanelRightClose, PanelRightOpen } from "lucide-react";import { cn } from "@/src/utils/tailwind";import { Button } from "@/src/components/ui/button";-import { ResizableDesktopLayout } from "./ResizableDesktopLayout";+import { ResizableSplitLayout } from "@/src/components/ui/resizable-split-layout";// --- Toggle Button ---@@ -46,18 +46,18 @@ interface OverviewPanelLayoutProps {mainContent: React.ReactNode;overviewContent: React.ReactNode;persistId?: string;- defaultMainSize?: number;- defaultSidebarSize?: number;- minMainSize?: number;- maxSidebarSize?: number;- sidebarPosition?: "left" | "right";+ defaultPrimarySize?: number;+ defaultSecondarySize?: number;+ minPrimarySize?: number;+ maxSecondarySize?: number;+ secondaryPosition?: "left" | "right";className?: string;}/*** A responsive layout component that displays main content alongside an overview panel.*- * - On desktop: Uses ResizableDesktopLayout with a collapsible sidebar+ * - On desktop: Uses ResizableSplitLayout with a collapsible overview panel* - On mobile: Stacks the overview panel above the main content** The open/close state is controlled externally via the `open` prop.@@ -68,11 +68,11 @@ function OverviewPanelLayout({mainContent,overviewContent,persistId,- defaultMainSize = 75,- defaultSidebarSize = 25,- minMainSize = 50,- maxSidebarSize = 40,- sidebarPosition = "right",+ defaultPrimarySize = 75,+ defaultSecondarySize = 25,+ minPrimarySize = 50,+ maxSecondarySize = 40,+ secondaryPosition = "right",className,}: OverviewPanelLayoutProps) {const isDesktop = useMediaQuery({ query: "(min-width: 768px)" });@@ -91,20 +91,20 @@ function OverviewPanelLayout({// Desktop: resizable layoutreturn (- <ResizableDesktopLayout+ <ResizableSplitLayoutclassName={className}- mainContent={mainContent}- sidebarContent={+ primaryContent={mainContent}+ secondaryContent={<div className="flex h-full flex-col overflow-y-auto p-4">{overviewContent}</div>}open={open}- defaultMainSize={defaultMainSize}- defaultSidebarSize={defaultSidebarSize}- minMainSize={minMainSize}- maxSidebarSize={maxSidebarSize}- sidebarPosition={sidebarPosition}+ defaultPrimarySize={defaultPrimarySize}+ defaultSecondarySize={defaultSecondarySize}+ minPrimarySize={minPrimarySize}+ maxSecondarySize={maxSecondarySize}+ secondaryPosition={secondaryPosition}persistId={persistId}/>);diff --git a/web/src/components/table/resizable-filter-layout.tsx b/web/src/components/table/resizable-filter-layout.tsxindex e0dff1a20b..3c4e952261 100644--- a/web/src/components/table/resizable-filter-layout.tsx+++ b/web/src/components/table/resizable-filter-layout.tsx@@ -2,7 +2,7 @@import { type PropsWithChildren, Children } from "react";import { useMediaQuery } from "react-responsive";-import { ResizableDesktopLayout } from "@/src/components/layouts/ResizableDesktopLayout";+import { ResizableSplitLayout } from "@/src/components/ui/resizable-split-layout";import { useDataTableControls } from "./data-table-controls";/** Resizable layout for filter sidebar and table content.@@ -39,19 +39,19 @@ export function ResizableFilterLayout({ children }: PropsWithChildren) {}return (- <ResizableDesktopLayout- mainContent={+ <ResizableSplitLayout+ primaryContent={<div className="flex h-full flex-col overflow-hidden">{tableContent}</div>}- sidebarContent={filterSidebar}+ secondaryContent={filterSidebar}open={open}- defaultMainSize={tableDefault}- defaultSidebarSize={filterDefault}- minMainSize={50}- maxSidebarSize={50}- sidebarPosition="left"+ defaultPrimarySize={tableDefault}+ defaultSecondarySize={filterDefault}+ minPrimarySize={50}+ maxSecondarySize={50}+ secondaryPosition="left"persistId={tableName ? `filter-layout-${tableName}` : "filter-layout"}/>);diff --git a/web/src/components/ui/resizable-split-layout.tsx b/web/src/components/ui/resizable-split-layout.tsxnew file mode 100644index 0000000000..e6f873e7f1--- /dev/null+++ b/web/src/components/ui/resizable-split-layout.tsx@@ -0,0 +1,162 @@+import { type ReactNode, useId, useLayoutEffect } from "react";+import {+ ResizableHandle,+ ResizablePanel,+ ResizablePanelGroup,+ useDefaultLayout,+ usePanelRef,+} from "@/src/components/ui/resizable";++interface ResizableSplitLayoutProps {+ primaryContent: ReactNode;+ secondaryContent: ReactNode;+ open: boolean;+ showHandle?: boolean;+ defaultPrimarySize?: number;+ defaultSecondarySize?: number;+ minPrimarySize?: number;+ maxSecondarySize?: number;+ className?: string;+ secondaryPosition?: "left" | "right";+ keepSecondaryMounted?: boolean;+ persistId?: string;+}++const PRIMARY_PANEL_ID = "primary";+const SECONDARY_PANEL_ID = "secondary";++const NOOP_LAYOUT_STORAGE = {+ getItem: () => null,+ setItem: () => {},+};++/**+ * Horizontal split layout with a collapsible secondary panel.+ *+ * Keeps the primary panel mounted so callers can preserve state while opening+ * and closing the secondary panel. By default, the secondary panel also stays+ * mounted and collapses; callers can opt out to remove inactive secondary DOM.+ */+export function ResizableSplitLayout({+ primaryContent,+ secondaryContent,+ open,+ showHandle = true,+ defaultPrimarySize = 70,+ defaultSecondarySize = 30,+ minPrimarySize = 30,+ maxSecondarySize = 60,+ className = "flex h-full w-full",+ secondaryPosition = "right",+ keepSecondaryMounted = true,+ persistId,+}: ResizableSplitLayoutProps) {+ const instanceId = useId().replace(/[^a-zA-Z0-9_-]/g, "");+ const groupId = persistId+ ? `resizable-layout-${persistId}`+ : `resizable-layout-${instanceId}`;++ const storage =+ persistId && typeof window !== "undefined"+ ? sessionStorage+ : NOOP_LAYOUT_STORAGE;++ const renderSecondaryPanel = keepSecondaryMounted || open;+ const panelIds = renderSecondaryPanel+ ? secondaryPosition === "left"+ ? [SECONDARY_PANEL_ID, PRIMARY_PANEL_ID]+ : [PRIMARY_PANEL_ID, SECONDARY_PANEL_ID]+ : [PRIMARY_PANEL_ID];++ const secondaryPanelRef = usePanelRef();++ const { defaultLayout, onLayoutChanged } = useDefaultLayout({+ id: groupId,+ panelIds,+ storage,+ });++ useLayoutEffect(() => {+ if (!keepSecondaryMounted) return;++ const panel = secondaryPanelRef.current;+ if (!panel) return;++ if (open) {+ // v4 react-resizable-panel `expand()` depends on internal collapsed bookkeeping.+ // Fallback to default size if the panel remains effectively closed.+ if (panel.isCollapsed()) {+ panel.expand();+ }+ if (panel.getSize().asPercentage < 2) {+ panel.resize(`${defaultSecondarySize}%`);+ }+ } else {+ panel.collapse();+ }+ }, [keepSecondaryMounted, open, secondaryPanelRef, defaultSecondarySize]);++ return (+ <ResizablePanelGroup+ id={groupId}+ orientation="horizontal"+ className={className}+ defaultLayout={renderSecondaryPanel ? defaultLayout : undefined}+ onLayoutChanged={+ persistId && renderSecondaryPanel ? onLayoutChanged : undefined+ }+ >+ {secondaryPosition === "left" && renderSecondaryPanel && (+ <ResizablePanel+ key={SECONDARY_PANEL_ID}+ id={SECONDARY_PANEL_ID}+ panelRef={secondaryPanelRef}+ defaultSize={`${defaultSecondarySize}%`}+ minSize="0%"+ maxSize={`${maxSecondarySize}%`}+ collapsible={true}+ collapsedSize="0%"+ className={open ? "visible" : "invisible"}+ style={{ overscrollBehaviorY: "none" }}+ >+ {secondaryContent}+ </ResizablePanel>+ )}+ {secondaryPosition === "left" && open && showHandle && (+ <ResizableHandle key="secondary-handle" withHandle />+ )}+ <ResizablePanel+ key={PRIMARY_PANEL_ID}+ id={PRIMARY_PANEL_ID}+ defaultSize={renderSecondaryPanel ? `${defaultPrimarySize}%` : "100%"}+ minSize={`${minPrimarySize}%`}+ >+ <div+ className="relative h-full w-full overflow-auto"+ style={{ overscrollBehaviorY: "none" }}+ >+ {primaryContent}+ </div>+ </ResizablePanel>+ {secondaryPosition === "right" && open && showHandle && (+ <ResizableHandle key="secondary-handle" withHandle />+ )}+ {secondaryPosition === "right" && renderSecondaryPanel && (+ <ResizablePanel+ key={SECONDARY_PANEL_ID}+ id={SECONDARY_PANEL_ID}+ panelRef={secondaryPanelRef}+ defaultSize={`${defaultSecondarySize}%`}+ minSize="0%"+ maxSize={`${maxSecondarySize}%`}+ collapsible={true}+ collapsedSize="0%"+ className={open ? "visible" : "invisible"}+ style={{ overscrollBehaviorY: "none" }}+ >+ {secondaryContent}+ </ResizablePanel>+ )}+ </ResizablePanelGroup>+ );+}diff --git a/web/src/pages/project/[projectId]/experiments/results.tsx b/web/src/pages/project/[projectId]/experiments/results.tsxindex e75481647b..d7d8c05db3 100644--- a/web/src/pages/project/[projectId]/experiments/results.tsx+++ b/web/src/pages/project/[projectId]/experiments/results.tsx@@ -159,10 +159,10 @@ export default function ExperimentResults() {onBaselineClear={clearBaseline}/>}- defaultMainSize={75}- defaultSidebarSize={25}- minMainSize={50}- maxSidebarSize={40}+ defaultPrimarySize={75}+ defaultSecondarySize={25}+ minPrimarySize={50}+ maxSecondarySize={40}/></Page>);