Skip to content

Commit

Permalink
fix: address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgrozav committed Jan 8, 2025
1 parent 39e71d2 commit f308322
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/editor-ui/src/components/MainSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,13 @@ const handleSelect = (key: string) => {
};
function onResize() {
void callDebounced(onResizeEnd, { debounceTime: 100 });
void callDebounced(onResizeEnd, { debounceTime: 250 });
}
async function onResizeEnd() {
if (window.outerWidth < 900) {
uiStore.sidebarMenuCollapsed = true;
void nextTick(() => {
fullyExpanded.value = !isCollapsed.value;
});
fullyExpanded.value = !isCollapsed.value;
} else {
uiStore.sidebarMenuCollapsed = uiStore.sidebarMenuCollapsedPreference;
}
Expand Down

0 comments on commit f308322

Please sign in to comment.