Merge pull request #20272 from overleaf/revert-20268-revert-19885-mj-resizeable-panels

[web] Upgrade react-resizable-panels (2nd attempt)

GitOrigin-RevId: 643a90044dac0daf39245fa29267b16550fd6e69
This commit is contained in:
Mathias Jakobsen
2024-09-06 08:05:28 +00:00
committed by Copybot
parent eb75c6e627
commit 663e2304f6
5 changed files with 18 additions and 11 deletions
@@ -45,9 +45,9 @@ export const EditorAndPdf: FC = () => {
hidden: view === 'history',
})}
>
{/* main */}
{/* ide */}
<Panel
id="panel-main"
id="panel-ide"
order={1}
defaultSize={50}
minSize={5}
@@ -73,6 +73,7 @@ export const EditorAndPdf: FC = () => {
className={classNames({
hidden: !editorIsOpen,
})}
hitAreaMargins={{ coarse: 0, fine: 0 }}
>
<HorizontalToggler
id="editor-pdf"
@@ -71,6 +71,7 @@ export const MainLayout: FC = () => {
onDoubleClick={toggleSidebar}
resizable={sidebarIsOpen}
onDragging={setSidebarResizing}
hitAreaMargins={{ coarse: 0, fine: 0 }}
>
<HorizontalToggler
id="panel-sidebar"
@@ -93,6 +94,7 @@ export const MainLayout: FC = () => {
onDoubleClick={toggleChat}
resizable={chatIsOpen}
onDragging={setChatResizing}
hitAreaMargins={{ coarse: 0, fine: 0 }}
/>
{/* chat */}