текст загрузки изображения у own varimg
All checks were successful
Deploy / CreateImage (push) Successful in 4m53s
Deploy / DeployService (push) Successful in 26s

This commit is contained in:
Nastya 2025-06-22 19:29:19 +03:00
parent ac82e688c5
commit 55379afd61

@ -215,7 +215,33 @@ export const Varimg = ({ currentQuestion }: VarimgProps) => {
</>
);
}
return <BlankImage />;
return (
<Box
sx={{
position: "relative",
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<BlankImage />
{variant?.isOwn && (
<Box
sx={{
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
zIndex: 1,
}}
>
{t("Add your image")}
</Box>
)}
</Box>
);
}
if (choiceImgUrlQuestion && choiceImgUrlQuestion.trim().length > 0) {