diff --git a/src/pages/ViewPublicationPage/ContactForm.tsx b/src/pages/ViewPublicationPage/ContactForm.tsx
index db623d1..97c6311 100644
--- a/src/pages/ViewPublicationPage/ContactForm.tsx
+++ b/src/pages/ViewPublicationPage/ContactForm.tsx
@@ -56,7 +56,7 @@ export const ContactForm = ({
const fireOnce = useRef(true)
const [fire, setFire] = useState(false)
- const isMobile = useMediaQuery(theme.breakpoints.down(600));
+ const isMobile = useMediaQuery(theme.breakpoints.down(850));
const followNextForm = () => {
setShowContactForm(false);
@@ -110,6 +110,19 @@ export const ContactForm = ({
}
}
+ //@ts-ignore
+ let FCcopy: any = settings?.cfg.formContact.fields || settings?.cfg.formContact;
+
+ let filteredFC: any = {}
+ for (let i in FCcopy) {
+ let field = FCcopy[i]
+ console.log(filteredFC)
+ if (field.used) {
+ filteredFC[i] = field
+ }
+ }
+ let isWide = Object.keys(filteredFC).length > 2
+ console.log(isWide)
if (!resultQuestion) return
@@ -120,19 +133,28 @@ export const ContactForm = ({
alignItems: "center",
justifyContent: "center",
backgroundColor: theme.palette.background.default,
- height: "100vh"
+ height: "100vh",
+ overflow: "auto",
}}
>
-
-
+