diff --git a/src/components/DialogManager.vue b/src/components/DialogManager.vue index 84c83e8..721e0ec 100644 --- a/src/components/DialogManager.vue +++ b/src/components/DialogManager.vue @@ -41,7 +41,7 @@ @@ -120,6 +120,17 @@ const sortOrderOptions = ref( }), ) +const itemSize = computed(() => { + let itemWidth = cardWidth + let itemGutter = gutter + if (isMobile.value) { + const baseSize = 16 + itemWidth = window.innerWidth - baseSize * 2 * 2 + itemGutter = baseSize * 2 + } + return itemWidth / aspect + itemGutter +}) + const colSpan = ref(1) const colSpanWidth = ref(cardWidth)