fix startpage img
This commit is contained in:
parent
43bedc6e90
commit
b18f21d2b7
@ -40,19 +40,21 @@ export const StartPageViewPublication = () => {
|
||||
|
||||
const background =
|
||||
settings.cfg.startpage.background.type === "image" ? (
|
||||
<img
|
||||
src={settings.cfg.startpage.background.desktop || DESIGN_LIST[settings.cfg.theme] || ""}
|
||||
alt=""
|
||||
style={{
|
||||
display: "block",
|
||||
width: isMobile || settings.cfg.startpageType === "expanded" ? "100%" : undefined,
|
||||
height: "100%",
|
||||
minWidth: "100%",
|
||||
maxHeight: "100%",
|
||||
objectFit: "cover",
|
||||
overflow: "hidden",
|
||||
}}
|
||||
/>
|
||||
(settings.cfg.startpage.background.desktop || DESIGN_LIST[settings.cfg.theme] !== undefined) && (
|
||||
<img
|
||||
src={settings.cfg.startpage.background.desktop || DESIGN_LIST[settings.cfg.theme] || ""}
|
||||
alt=""
|
||||
style={{
|
||||
display: "block",
|
||||
width: isMobile || settings.cfg.startpageType === "expanded" ? "100%" : undefined,
|
||||
height: "100%",
|
||||
minWidth: "100%",
|
||||
maxHeight: "100%",
|
||||
objectFit: "cover",
|
||||
overflow: "hidden",
|
||||
}}
|
||||
/>
|
||||
)
|
||||
) : settings.cfg.startpage.background.type === "video" ? (
|
||||
settings.cfg.startpage.background.video ? (
|
||||
<QuizVideo
|
||||
|
Loading…
Reference in New Issue
Block a user