diff --git a/frontend/src/views/dashboard/canvas/CanvasCore.vue b/frontend/src/views/dashboard/canvas/CanvasCore.vue index 7961a760..dea6f0a0 100644 --- a/frontend/src/views/dashboard/canvas/CanvasCore.vue +++ b/frontend/src/views/dashboard/canvas/CanvasCore.vue @@ -251,9 +251,7 @@ function removeItemFromPositionBox(item: CanvasItem) { */ function recomputeCellWidth() { if (!containerRef.value) return - maxCell.value = isMainCanvas(props.canvasId) - ? Math.floor(containerRef.value.offsetWidth / cellWidth.value) - : Math.round(containerRef.value.offsetWidth / cellWidth.value) + maxCell.value = Math.floor(containerRef.value.offsetWidth / cellWidth.value) } function sizeInit() { diff --git a/frontend/src/views/dashboard/editor/index.vue b/frontend/src/views/dashboard/editor/index.vue index 1c8dc224..b8256625 100644 --- a/frontend/src/views/dashboard/editor/index.vue +++ b/frontend/src/views/dashboard/editor/index.vue @@ -93,7 +93,6 @@ const baseParams = computed(() => {