mirror of
https://github.com/directus/directus.git
synced 2026-01-30 07:58:15 -05:00
Fix nav bar not saving reset value on dbl click
This commit is contained in:
@@ -118,6 +118,7 @@ useEventListener(window, 'pointermove', onPointerMove);
|
||||
useEventListener(window, 'pointerup', onPointerUp);
|
||||
|
||||
const { data } = useLocalStorage('module-nav-width');
|
||||
|
||||
onMounted(() => {
|
||||
if (!data.value) return;
|
||||
if (Number.isNaN(data.value)) return;
|
||||
@@ -202,6 +203,7 @@ function useModuleNavResize() {
|
||||
}
|
||||
|
||||
function resetModuleNavWidth() {
|
||||
currentWidth.value = 220;
|
||||
moduleNavEl.value!.style.width = `220px`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user