diff --git a/src/runtime/components/views/EditView.vue b/src/runtime/components/views/EditView.vue index 81f8b04..5700ba6 100644 --- a/src/runtime/components/views/EditView.vue +++ b/src/runtime/components/views/EditView.vue @@ -160,12 +160,19 @@ onMounted( }) window.addEventListener('resize', resizeListener) + resizeListener() }, ) const resizeListener = () => { viewPortHeight.value = window.innerHeight viewPortWidth.value = window.innerWidth + + const container = document.querySelector('body') + if (container) { + const containerWidth = container.clientWidth + isMobile.value = containerWidth < 768 + } } onUnmounted(() => { @@ -453,28 +460,59 @@ watch(mobileView, () => { } } }) + +const openList = ref(false) + +const isMobile = ref(false)