Merge branch 'dev' into 'staging'

квадратная картинка в результатах

See merge request frontend/squzanswerer!103
This commit is contained in:
Nastya 2024-04-09 10:40:32 +00:00
commit 7fc38dc07c

@ -120,17 +120,20 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
} }
{ {
resultQuestion?.content.useImage && resultQuestion.content.back && ( resultQuestion?.content.useImage && resultQuestion.content.back && (
<Box sx={{width: "100%", display: "flex", justifyContent: "center"}}>
<Box <Box
component="img" component="img"
src={resultQuestion.content.back} src={resultQuestion.content.back}
sx={{ sx={{
width: "100%", width: "100%",
maxWidth: "844px", maxWidth: "306px",
height: spec ? "auto" : isMobile ? "236px" : "306px", height: spec ? "auto" : isMobile ? "236px" : "306px",
borderRadius: "8px", borderRadius: "8px",
objectFit: "contain", objectFit: "contain",
}} }}
/> />
</Box>
) )
} }
{resultQuestion.description !== "" && {resultQuestion.description !== "" &&