Merge branch 'dev' into 'staging'

Dev

See merge request frontend/squzanswerer!107
This commit is contained in:
Nastya 2024-04-10 19:42:10 +00:00
commit d33c94a33e

@ -107,7 +107,7 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
filteredFC[i] = field; filteredFC[i] = field;
} }
} }
const isWide = Object.keys(filteredFC).length > 2;
async function handleShowResultsClick() { async function handleShowResultsClick() {
const FC: any = settings.cfg.formContact.fields; const FC: any = settings.cfg.formContact.fields;
@ -178,22 +178,22 @@ export const ContactForm = ({ currentQuestion, onShowResult }: Props) => {
> >
<Box <Box
sx={{ sx={{
width: isWide && !isMobile ? "100%" : isMobile ? undefined : "530px", width: !isMobile ? "100%" : isMobile ? undefined : "530px",
borderRadius: "4px", borderRadius: "4px",
height: "100%", height: "100%",
minHeight: "100%", minHeight: "100%",
display: isWide && !isMobile ? "flex" : undefined, display: isMobile ? undefined : "flex",
background: settings.cfg.design && !isMobile ? undefined : theme.palette.background.default, background: settings.cfg.design && !isMobile ? undefined : theme.palette.background.default,
}} }}
> >
<Box <Box
sx={{ sx={{
width: isWide && !isMobile ? "100%" : undefined, width: isMobile ? undefined : "100%",
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
alignItems: "center", alignItems: "center",
justifyContent: "center", justifyContent: "center",
borderRight: isWide && !isMobile ? "1px solid #9A9AAF80" : undefined, borderRight: isMobile ? undefined : "1px solid #9A9AAF80",
margin: isMobile ? 0 : "40px 0" margin: isMobile ? 0 : "40px 0"
}} }}
> >