Skip to content

Commit 17696c3

Browse files
committed
fix(theme): close sidebar on resize (closes #5145)
1 parent ca1e875 commit 17696c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/client/theme-default/composables

src/client/theme-default/composables/layout.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export function registerWatchers({ closeSidebar }: RegisterWatchersOptions) {
107107
const route = useRoute()
108108
watch(() => route.path, closeSidebar)
109109

110+
watch(is960, closeSidebar)
110111
useCloseSidebarOnEscape(closeSidebar)
111112
}
112113

0 commit comments

Comments
 (0)