From 5c6b8ec015abdea1ede2ff922f56061200edd22e Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 20 Dec 2023 11:48:24 +0000 Subject: [PATCH] Use the expanded size from localStorage when available (#16298) GitOrigin-RevId: 7747881b99d23ebb0ee38d044c671bffb7504302 --- .../ide-react/components/editor-sidebar.tsx | 6 +-- .../components/layout/main-layout.tsx | 4 +- .../features/ide-react/hooks/use-chat-pane.ts | 11 +++-- .../ide-react/hooks/use-collapsible-panel.ts | 25 +++++++++-- .../ide-react/hooks/use-fixed-size-column.ts | 13 +++--- .../ide-react/hooks/use-outline-pane.ts | 42 +++---------------- .../ide-react/hooks/use-sidebar-pane.ts | 10 +++-- 7 files changed, 52 insertions(+), 59 deletions(-) diff --git a/services/web/frontend/js/features/ide-react/components/editor-sidebar.tsx b/services/web/frontend/js/features/ide-react/components/editor-sidebar.tsx index 8a443eba78..bbc29dbd79 100644 --- a/services/web/frontend/js/features/ide-react/components/editor-sidebar.tsx +++ b/services/web/frontend/js/features/ide-react/components/editor-sidebar.tsx @@ -9,7 +9,7 @@ import { useOutlinePane } from '@/features/ide-react/hooks/use-outline-pane' export default function EditorSidebar() { const { view } = useLayoutContext() - const { outlineDisabled, outlineRef } = useOutlinePane() + const { outlineEnabled, outlinePanelRef } = useOutlinePane() return (