improved padding on tablet, fixed gradient
This commit is contained in:
parent
c537018c21
commit
7a7dd22302
@ -49,7 +49,21 @@ const StandartLayout = ({
|
|||||||
width: 0,
|
width: 0,
|
||||||
},
|
},
|
||||||
overflowY: "auto",
|
overflowY: "auto",
|
||||||
|
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: alignType === "left" ? "row" : "row-reverse",
|
||||||
padding: isTablet ? "15px" : "0",
|
padding: isTablet ? "15px" : "0",
|
||||||
|
background: settings.cfg.design && !quizThemes[settings.cfg.theme].isLight
|
||||||
|
? alignType === 'left'
|
||||||
|
? "linear-gradient(90deg, #272626, transparent)"
|
||||||
|
: alignType === 'right'
|
||||||
|
? "linear-gradient(-90deg, #272626, transparent)"
|
||||||
|
: "linear-gradient(0deg, #272626, transparent)"
|
||||||
|
: null,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
@ -62,10 +76,6 @@ const StandartLayout = ({
|
|||||||
alignItems: "flex-start",
|
alignItems: "flex-start",
|
||||||
p: isTablet ? "25px" : alignType === 'left' ? "25px 25px 25px 35px" : "25px 35px 25px 25px",
|
p: isTablet ? "25px" : alignType === 'left' ? "25px 25px 25px 35px" : "25px 35px 25px 25px",
|
||||||
overflowY: "auto",
|
overflowY: "auto",
|
||||||
background:
|
|
||||||
settings.cfg.design && !quizThemes[settings.cfg.theme].isLight
|
|
||||||
? "linear-gradient(90deg,#272626,transparent)"
|
|
||||||
: null,
|
|
||||||
scrollbarWidth: "none",
|
scrollbarWidth: "none",
|
||||||
"&::-webkit-scrollbar": {
|
"&::-webkit-scrollbar": {
|
||||||
width: 0,
|
width: 0,
|
||||||
@ -88,6 +98,7 @@ const StandartLayout = ({
|
|||||||
>{backgroundBlock}</Box></Box>
|
>{backgroundBlock}</Box></Box>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -188,9 +199,8 @@ const CenteredLayout = ({
|
|||||||
height: "100%",
|
height: "100%",
|
||||||
backgroundPosition: "center",
|
backgroundPosition: "center",
|
||||||
backgroundSize: "cover",
|
backgroundSize: "cover",
|
||||||
backgroundImage: settings.cfg.design
|
backgroundImage: !settings.cfg.design ? null : settings.cfg.design && !quizThemes[settings.cfg.theme].isLight
|
||||||
? `url(${DESIGN_LIST[settings.cfg.theme]})`
|
? `linear-gradient(0deg, #272626, transparent), url(${DESIGN_LIST[settings.cfg.theme]})` : `url(${DESIGN_LIST[settings.cfg.theme]})`,
|
||||||
: null,
|
|
||||||
scrollbarWidth: "none",
|
scrollbarWidth: "none",
|
||||||
"&::-webkit-scrollbar": {
|
"&::-webkit-scrollbar": {
|
||||||
width: 0,
|
width: 0,
|
||||||
|
|||||||
@ -76,7 +76,10 @@ const StandartMobileLayout = ({
|
|||||||
height: "100%",
|
height: "100%",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
"& > img": { width: "100%", borderRadius: "12px" },
|
"& > img": {
|
||||||
|
width: "100%",
|
||||||
|
borderRadius: "12px"
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{backgroundBlock}
|
{backgroundBlock}
|
||||||
@ -186,9 +189,8 @@ const CenteredMobileLayout = ({
|
|||||||
height: "100%",
|
height: "100%",
|
||||||
backgroundPosition: "center",
|
backgroundPosition: "center",
|
||||||
backgroundSize: "cover",
|
backgroundSize: "cover",
|
||||||
backgroundImage: settings.cfg.design
|
backgroundImage: !settings.cfg.design ? null : settings.cfg.design && !quizThemes[settings.cfg.theme].isLight
|
||||||
? `url(${DESIGN_LIST[settings.cfg.theme]})`
|
? `linear-gradient(0deg, #272626, transparent), url(${DESIGN_LIST[settings.cfg.theme]})` : `url(${DESIGN_LIST[settings.cfg.theme]})`,
|
||||||
: null,
|
|
||||||
"&::-webkit-scrollbar": {width: 0},
|
"&::-webkit-scrollbar": {width: 0},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user