기능추가

This commit is contained in:
leeheejin
2025-11-06 17:32:29 +09:00
parent b3cd771b99
commit ead3433f3e
8 changed files with 232 additions and 147 deletions
@@ -241,7 +241,17 @@ export const RealtimePreviewDynamic: React.FC<RealtimePreviewProps> = ({
return "100%";
}
// 3순위: size.width (픽셀)
// 3순위: size.width (픽셀) - 버튼의 경우 항상 픽셀 사용
if (isButtonComponent && size?.width) {
const width = `${size.width}px`;
console.log("🔘 [getWidth] 버튼 픽셀 사용:", {
componentId: id,
label: component.label,
width,
});
return width;
}
if (component.componentConfig?.type === "table-list") {
const width = `${Math.max(size?.width || 120, 120)}px`;
console.log("📏 [getWidth] 픽셀 사용 (table-list):", {