fix banner widget layout
This commit is contained in:
parent
6fb351759d
commit
ac0f06ff72
@ -85,7 +85,7 @@ export default function QuizBanner({
|
||||
position: "fixed",
|
||||
height: "120px",
|
||||
width: bannerFullWidth ? "100%" : "800px",
|
||||
maxWidth: `calc(100% - ${PADDING * 2}px)`,
|
||||
maxWidth: bannerFullWidth ? "100%" : `calc(100% - ${PADDING * 2}px)`,
|
||||
},
|
||||
position === "topleft" && {
|
||||
top: bannerFullWidth ? 0 : PADDING,
|
||||
@ -111,7 +111,7 @@ export default function QuizBanner({
|
||||
width: "100%",
|
||||
pointerEvents: "none",
|
||||
willChange: "box-shadow",
|
||||
borderRadius: rounded ? "8px" : 0,
|
||||
borderRadius: rounded && !bannerFullWidth ? "8px" : 0,
|
||||
animation: "pena-pulsation linear 5s infinite",
|
||||
"@keyframes pena-pulsation": {
|
||||
"0%": {
|
||||
@ -141,7 +141,7 @@ export default function QuizBanner({
|
||||
px: "28px",
|
||||
color: buttonTextColor,
|
||||
backgroundColor: buttonBackgroundColor,
|
||||
borderRadius: rounded ? "8px" : 0,
|
||||
borderRadius: rounded && !bannerFullWidth ? "8px" : 0,
|
||||
justifyContent: "start",
|
||||
},
|
||||
withShadow && {
|
||||
|
Loading…
Reference in New Issue
Block a user