fix: Hot fix 3D model view in right preview
This commit is contained in:
@ -24,6 +24,14 @@ export function MediaViewer({
|
||||
return (
|
||||
<Box
|
||||
className={className}
|
||||
sx={{
|
||||
width: fullWidth ? "100%" : "auto",
|
||||
height: fullHeight ? "100%" : "auto",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
overflow: "hidden",
|
||||
}}
|
||||
width={fullWidth ? "100%" : "auto"}
|
||||
height={fullHeight ? "100%" : "auto"}
|
||||
>
|
||||
@ -100,8 +108,8 @@ export function MediaViewer({
|
||||
fileUrl={`${import.meta.env.VITE_KRBL_MEDIA}${
|
||||
media?.id
|
||||
}/download?token=${token}`}
|
||||
height="100%"
|
||||
width="1000px"
|
||||
height="500px"
|
||||
width="500px"
|
||||
/>
|
||||
)}
|
||||
</Box>
|
||||
|
Reference in New Issue
Block a user