градиент отображается в варианте expanded

This commit is contained in:
ArtChaos189 2023-12-18 19:27:13 +03:00
parent 6c07300b2a
commit 2828a5ebe2

@ -74,6 +74,7 @@ export const StartPageViewPublication = ({ setVisualStartPage }: Props) => {
className="quiz-preview-draghandle" className="quiz-preview-draghandle"
sx={{ sx={{
height: "100vh", height: "100vh",
width: "100vw",
background: background:
quiz.config.startpageType === "expanded" quiz.config.startpageType === "expanded"
? quiz.config.startpage.position === "left" ? quiz.config.startpage.position === "left"
@ -82,6 +83,7 @@ export const StartPageViewPublication = ({ setVisualStartPage }: Props) => {
? "linear-gradient(180deg,transparent,#272626)" ? "linear-gradient(180deg,transparent,#272626)"
: "linear-gradient(270deg,#272626,transparent)" : "linear-gradient(270deg,#272626,transparent)"
: "", : "",
color: quiz.config.startpageType === "expanded" ? "white" : "black", color: quiz.config.startpageType === "expanded" ? "white" : "black",
}} }}
> >
@ -296,7 +298,7 @@ function QuizPreviewLayoutByType({
width: "40%", width: "40%",
position: "relative", position: "relative",
padding: "16px", padding: "16px",
zIndex: 2, zIndex: 3,
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
justifyContent: "space-between", justifyContent: "space-between",
@ -309,11 +311,11 @@ function QuizPreviewLayoutByType({
<Box <Box
sx={{ sx={{
position: "absolute", position: "absolute",
zIndex: -1,
left: 0, left: 0,
top: 0, top: 0,
height: "100%", height: "100%",
width: "100%", width: "100%",
zIndex: 1,
overflow: "hidden", overflow: "hidden",
}} }}
> >