фикс стартовой странички

This commit is contained in:
Tamara 2024-02-16 00:10:51 +03:00
parent 0391f44828
commit 2203ad6d23
2 changed files with 11 additions and 7 deletions

@ -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}</Typography>
</Box>
@ -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({
<Box
sx={{
width: "60%",
overflow: "hidden",
height: "275px",
// overflow: "hidden",
display: "flex",
justifyContent: "center"
}}

@ -9,7 +9,7 @@ import QuizAnswerer from "../lib/components/QuizAnswerer";
import { ApologyPage } from "../lib/components/ViewPublicationPage/ApologyPage";
// const defaultQuizId = "45ef7f9c-784d-4e58-badb-f6b337f08ba0"; // branching
const defaultQuizId = "d7c940fe-1e44-41a0-bbac-5f304c51a1e4"; //looooong header
const defaultQuizId = "d354ba89-0bd3-4d5e-a8ce-88d6f387f3fc"; //looooong header
// const defaultQuizId = "ad7f5a87-b833-4f5b-854e-453706ed655c"; // linear
export default function App() {