chore: update examples

This commit is contained in:
mathuo 2023-09-30 11:31:01 +01:00
parent 08ec3fd3a5
commit 4c142b9632
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -109,16 +109,9 @@ const App = (props: { theme?: string }) => {
if (event.ctrlKey) { if (event.ctrlKey) {
if (event.code === 'ArrowLeft') { if (event.code === 'ArrowLeft') {
const leftSidebarPanel = api.getPanel('left-sidebar-id'); const leftSidebarPanel = api.getPanel('left-sidebar-id');
const rightSidebarPanel = api.getPanel('right-sidebar-id');
// const width = rightSidebarPanel?.api.width;
if (leftSidebarPanel) { if (leftSidebarPanel) {
leftSidebarPanel.api.setVisible(false); leftSidebarPanel.api.setVisible(false);
// if (rightSidebarPanel && typeof width === 'number') {
// rightSidebarPanel.api.setSize({ width });
// }
} }
} }
} }
@ -128,7 +121,6 @@ const App = (props: { theme?: string }) => {
if (leftSidebarPanel) { if (leftSidebarPanel) {
leftSidebarPanel.api.setVisible(true); leftSidebarPanel.api.setVisible(true);
// leftSidebarPanel.api.setSize({ width: 200 });
} }
} }
}; };