remove viewport css units breaking layout
This commit is contained in:
parent
ade7ca21ea
commit
bacce7d9e6
@ -32,7 +32,7 @@ export const ResultForm = ({ resultQuestion }: ResultFormProps) => {
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
height: "100%",
|
||||
width: "100vw",
|
||||
width: "100%",
|
||||
pt: "28px",
|
||||
overflow: "auto",
|
||||
}}
|
||||
|
@ -21,7 +21,7 @@ export const StartPageViewPublication = () => {
|
||||
const handleCopyNumber = () => {
|
||||
navigator.clipboard.writeText(settings.cfg.info.phonenumber);
|
||||
};
|
||||
console.log(settings.cfg.startpage.background.type)
|
||||
console.log(settings.cfg.startpage.background.type);
|
||||
|
||||
const background =
|
||||
settings.cfg.startpage.background.type === "image" ? (
|
||||
@ -45,9 +45,7 @@ export const StartPageViewPublication = () => {
|
||||
width:
|
||||
settings.cfg.startpageType === "centered"
|
||||
? "550px"
|
||||
: settings.cfg.startpageType === "expanded"
|
||||
? "100vw"
|
||||
: "100%",
|
||||
: "100%",
|
||||
height:
|
||||
settings.cfg.startpageType === "centered"
|
||||
? "275px"
|
||||
@ -345,7 +343,7 @@ function QuizPreviewLayoutByType({
|
||||
<StartPageMobile />
|
||||
) : (
|
||||
<Box
|
||||
id="pain"
|
||||
id="pain"
|
||||
sx={{
|
||||
display: "flex",
|
||||
flexDirection: alignType === "left" ? (isMobile ? "column-reverse" : "row") : "row-reverse",
|
||||
|
@ -43,7 +43,7 @@ export const Page = ({ currentQuestion }: PageProps) => {
|
||||
containerSX={{
|
||||
width: "100%",
|
||||
height: "calc(100% - 270px)",
|
||||
maxHeight: "80vh",
|
||||
maxHeight: "80%",
|
||||
objectFit: "contain",
|
||||
}}
|
||||
videoUrl={currentQuestion.content.video}
|
||||
|
Loading…
Reference in New Issue
Block a user