fix: Hot fix 3D model view in right preview

This commit is contained in:
2025-07-10 11:53:00 +03:00
parent 06eafee3f4
commit a908c63771
3 changed files with 16 additions and 16 deletions

View File

@@ -475,21 +475,12 @@ export const CreateRightTab = observer(
media_type: previewMedia.media_type,
filename: previewMedia.filename || "",
}}
fullWidth
fullHeight
/>
</Box>
</>
)}
{!previewMedia && (
<MediaAreaForSight
onFinishUpload={(mediaId) => {
linkPreviewMedia(mediaId);
}}
onFilesDrop={() => {}}
contextObjectName={sight[language].name}
contextType="sight"
isArticle={false}
/>
)}
</Box>
)}
</>
@@ -531,7 +522,8 @@ export const CreateRightTab = observer(
className=" overflow-hidden"
sx={{
width: "100%",
height: "100%",
overflow: "hidden",
background: "#877361",
borderColor: "grey.300",
display: "flex",
@@ -551,7 +543,6 @@ export const CreateRightTab = observer(
borderTopRightRadius: "10px",
width: "100%",
height: "auto",
objectFit: "contain",
},
}}
>
@@ -560,6 +551,7 @@ export const CreateRightTab = observer(
sight[language].right[activeArticleIndex].media[0]
}
fullWidth
fullHeight
/>
</Box>
) : (