위젯의 최소 크기를 1x1 로 변경

This commit is contained in:
dohyeons
2025-10-28 15:02:37 +09:00
parent 71beae8e24
commit 28ecc31128
6 changed files with 34 additions and 32 deletions

View File

@@ -353,9 +353,9 @@ export function CanvasElement({
let newX = resizeStart.elementX;
let newY = resizeStart.elementY;
// 최소 크기 설정: 달력은 2x3, 나머지는 2x2
const minWidthCells = 2;
const minHeightCells = element.type === "widget" && element.subtype === "calendar" ? 3 : 2;
// 최소 크기 설정: 모든 위젯 1x1
const minWidthCells = 1;
const minHeightCells = 1;
const minWidth = cellSize * minWidthCells;
const minHeight = cellSize * minHeightCells;