diff --git a/lib/components/ViewPublicationPage/StartPageViewPublication.tsx b/lib/components/ViewPublicationPage/StartPageViewPublication.tsx index cb3ae88..a638cbf 100644 --- a/lib/components/ViewPublicationPage/StartPageViewPublication.tsx +++ b/lib/components/ViewPublicationPage/StartPageViewPublication.tsx @@ -21,6 +21,7 @@ export const StartPageViewPublication = () => { const handleCopyNumber = () => { navigator.clipboard.writeText(settings.cfg.info.phonenumber); }; + console.log(settings.cfg.startpage.background.type) const background = settings.cfg.startpage.background.type === "image" ? ( @@ -29,7 +30,7 @@ export const StartPageViewPublication = () => { src={settings.cfg.startpage.background.desktop} alt="" style={{ - width: "100%", + width: (isMobile || settings.cfg.startpageType === "expanded") ? "100%" : undefined, height: "100%", objectFit: "cover", overflow: "hidden", @@ -112,7 +113,8 @@ export const StartPageViewPublication = () => { sx={{ fontSize: "14px", color: settings.cfg.startpageType === "expanded" - && !isMobile ? "white" : theme.palette.text.primary + && !isMobile ? "white" : theme.palette.text.primary, + wordBreak: "break-word" }} >{settings.cfg.info.orgname} @@ -159,7 +161,7 @@ export const StartPageViewPublication = () => { lineHeight: "1.2", overflowWrap: "break-word", width: "100%", - textAlign: settings.cfg.startpageType === "centered" ? "center" : "-moz-initial", + textAlign: settings.cfg.startpageType === "centered" || settings.cfg.startpage.position === "center" ? "center" : "-moz-initial", color: settings.cfg.startpageType === "expanded" && !isMobile ? "white" : theme.palette.text.primary }} > @@ -171,7 +173,8 @@ export const StartPageViewPublication = () => { m: "16px 0", overflowWrap: "break-word", width: "100%", - textAlign: settings.cfg.startpageType === "centered" ? "center" : "-moz-initial", + textAlign: settings.cfg.startpageType === "centered" || settings.cfg.startpage.position === "center" ? "center" : "-moz-initial", + color: settings.cfg.startpageType === "expanded" && !isMobile ? "white" : theme.palette.text.primary }} > {settings.cfg.startpage.description} @@ -446,7 +449,7 @@ function QuizPreviewLayoutByType({ alignItems: "center", height: "100%", "&::-webkit-scrollbar": { width: 0 }, - overflow: "hidden", + overflow: "auto", }} > {quizHeaderBlock} @@ -454,7 +457,8 @@ function QuizPreviewLayoutByType({