Skip to content

Commit c1c61c0

Browse files
authored
fix: fixes broken mobile splitpanes (#3692)
1 parent 792a9f1 commit c1c61c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/layouts/default.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ function showFuzzySearch() {
9292
}
9393
9494
function onResized({ panes }: { panes: { size: number }[] }) {
95-
if (panes) {
96-
menuWidth.value = panes[0].size;
95+
if (panes.length == 2) {
96+
menuWidth.value = Math.min(panes[0].size, 50);
9797
}
9898
}
9999
</script>

0 commit comments

Comments
 (0)