기능추가
This commit is contained in:
@@ -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):", {
|
||||
|
||||
Reference in New Issue
Block a user