모달 잘 보이게 수정

This commit is contained in:
kjs
2025-11-10 09:33:29 +09:00
parent 1d6418ca63
commit e2f4b47588
5 changed files with 85 additions and 32 deletions

View File

@@ -364,7 +364,7 @@ export const ScreenModal: React.FC<ScreenModalProps> = ({ className }) => {
</div>
</ResizableDialogHeader>
<div className="flex flex-1 items-center justify-center overflow-auto">
<div className="flex-1 overflow-auto p-6">
{loading ? (
<div className="flex h-full items-center justify-center">
<div className="text-center">
@@ -374,13 +374,11 @@ export const ScreenModal: React.FC<ScreenModalProps> = ({ className }) => {
</div>
) : screenData ? (
<div
className="relative bg-white"
className="relative bg-white mx-auto"
style={{
width: screenDimensions?.width || 800,
height: screenDimensions?.height || 600,
width: `${screenDimensions?.width || 800}px`,
height: `${screenDimensions?.height || 600}px`,
transformOrigin: "center center",
maxWidth: "100%",
maxHeight: "100%",
}}
>
{screenData.components.map((component) => {