mirror of
https://github.com/mathuo/dockview
synced 2025-03-12 00:42:04 +00:00
chore: update examples
This commit is contained in:
parent
08ec3fd3a5
commit
4c142b9632
@ -109,16 +109,9 @@ const App = (props: { theme?: string }) => {
|
||||
if (event.ctrlKey) {
|
||||
if (event.code === 'ArrowLeft') {
|
||||
const leftSidebarPanel = api.getPanel('left-sidebar-id');
|
||||
const rightSidebarPanel = api.getPanel('right-sidebar-id');
|
||||
|
||||
// const width = rightSidebarPanel?.api.width;
|
||||
|
||||
if (leftSidebarPanel) {
|
||||
leftSidebarPanel.api.setVisible(false);
|
||||
|
||||
// if (rightSidebarPanel && typeof width === 'number') {
|
||||
// rightSidebarPanel.api.setSize({ width });
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -128,7 +121,6 @@ const App = (props: { theme?: string }) => {
|
||||
|
||||
if (leftSidebarPanel) {
|
||||
leftSidebarPanel.api.setVisible(true);
|
||||
// leftSidebarPanel.api.setSize({ width: 200 });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user