fixed centered start page design
This commit is contained in:
parent
1bd93fa2d7
commit
03b2bf2cc6
@ -153,7 +153,7 @@ export const StartPageViewPublication = () => {
|
|||||||
sx={{
|
sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
justifyContent: isMobile? "start" : "center",
|
justifyContent: settings.cfg.startpageType === "standard" && isMobile? "start" : "center",
|
||||||
flexGrow: settings.cfg.startpageType === "centered" ? 0 : 1,
|
flexGrow: settings.cfg.startpageType === "centered" ? 0 : 1,
|
||||||
alignItems:
|
alignItems:
|
||||||
settings.cfg.startpageType === "centered"
|
settings.cfg.startpageType === "centered"
|
||||||
@ -244,29 +244,29 @@ export const StartPageViewPublication = () => {
|
|||||||
: 0,
|
: 0,
|
||||||
gap: isMobile? "30px" : "40px",
|
gap: isMobile? "30px" : "40px",
|
||||||
alignItems: "flex-end",
|
alignItems: "flex-end",
|
||||||
justifyContent: settings.cfg.startpageType === "centered" || settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && isMobile? "center" : "space-between",
|
justifyContent: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && isMobile || settings.cfg.startpageType === "centered" && isMobile ? "center" : "space-between",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
flexWrap: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" ? isMobile ? "wrap-reverse" : "nowrap" : "wrap",
|
flexWrap: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" ? isMobile ? "wrap-reverse" : "nowrap" : "wrap",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && !isMobile && quizHeaderBlock}
|
{settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && !isMobile && quizHeaderBlock}
|
||||||
<Box sx={{ maxWidth: "300px",
|
<Box sx={{ maxWidth: "300px",
|
||||||
display: settings.cfg.startpageType === "centered" || settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && isMobile ? "flex" : "block",
|
display: settings.cfg.startpageType === "centered" && isMobile || settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && isMobile ? "flex" : "block",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
order: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"? "2" : "0"}}>
|
order: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center"? "2" : "0"}}>
|
||||||
{settings.cfg.info.site && (
|
{settings.cfg.info.site && (
|
||||||
<Link href={settings.cfg.info.site}
|
<Link href={settings.cfg.info.site}
|
||||||
sx={{marginBottom: settings.cfg.startpageType === "centered" && isMobile ? "0" : "16px"}}
|
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
|
lineHeight: "19px",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
|
textAlign: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" && !isMobile ? "end" : "none",
|
||||||
color: theme.palette.primary.main,
|
color: theme.palette.primary.main,
|
||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
textOverflow: "ellipsis",
|
textOverflow: "ellipsis",
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
maxWidth: isTablet ? "200px" : "300px",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{settings.cfg.info.site}
|
{settings.cfg.info.site}
|
||||||
@ -278,6 +278,8 @@ export const StartPageViewPublication = () => {
|
|||||||
<Link href={`tel:${settings.cfg.info.phonenumber}`}>
|
<Link href={`tel:${settings.cfg.info.phonenumber}`}>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
|
lineHeight: "19px",
|
||||||
|
textAlign: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" ? "end" : "none",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
color:
|
color:
|
||||||
settings.cfg.startpageType === "expanded"
|
settings.cfg.startpageType === "expanded"
|
||||||
@ -292,7 +294,9 @@ export const StartPageViewPublication = () => {
|
|||||||
<ButtonBase onClick={handleCopyNumber}>
|
<ButtonBase onClick={handleCopyNumber}>
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
|
textAlign: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" ? "end" : "none",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
|
lineHeight: "19px",
|
||||||
color:
|
color:
|
||||||
settings.cfg.startpageType === "expanded"
|
settings.cfg.startpageType === "expanded"
|
||||||
? "#FFFFFF"
|
? "#FFFFFF"
|
||||||
@ -306,6 +310,8 @@ export const StartPageViewPublication = () => {
|
|||||||
) : (
|
) : (
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
|
lineHeight: "19px",
|
||||||
|
textAlign: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" ? "end" : "none",
|
||||||
fontSize: "16px",
|
fontSize: "16px",
|
||||||
marginTop: "10px",
|
marginTop: "10px",
|
||||||
color:
|
color:
|
||||||
@ -319,9 +325,11 @@ export const StartPageViewPublication = () => {
|
|||||||
)}
|
)}
|
||||||
<Typography
|
<Typography
|
||||||
sx={{
|
sx={{
|
||||||
|
lineHeight: "14px",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
overflowWrap: "break-word",
|
overflowWrap: "break-word",
|
||||||
fontSize: "12px",
|
fontSize: "12px",
|
||||||
|
textAlign: settings.cfg.startpageType === "expanded" && settings.cfg.startpage.position === "center" ? "end" : "none",
|
||||||
maxHeight: "120px",
|
maxHeight: "120px",
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
marginTop: "10px",
|
marginTop: "10px",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user