add banner widget dimensions param

This commit is contained in:
nflnkr 2024-05-27 12:58:35 +03:00
parent 52ff0a4e6c
commit 59d4678afd
3 changed files with 12 additions and 5 deletions

@ -7,7 +7,7 @@
"@emotion/react": "^11.10.5", "@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5", "@emotion/styled": "^11.10.5",
"@frontend/kitui": "^1.0.82", "@frontend/kitui": "^1.0.82",
"@frontend/squzanswerer": "^1.0.42", "@frontend/squzanswerer": "^1.0.43",
"@mui/icons-material": "^5.10.14", "@mui/icons-material": "^5.10.14",
"@mui/material": "^5.10.14", "@mui/material": "^5.10.14",
"@mui/x-charts": "^6.19.5", "@mui/x-charts": "^6.19.5",

@ -77,6 +77,13 @@ export default function BannerWidgetSetup({ step, nextButton }: Props) {
appealText: appealText || undefined, appealText: appealText || undefined,
quizHeaderText: quizHeaderText || undefined, quizHeaderText: quizHeaderText || undefined,
pulsation: pulsation || undefined, pulsation: pulsation || undefined,
dialogDimensions:
widgetWidth || widgetHeight
? {
width: widgetWidth ? `${widgetWidth}px` : "100%",
height: widgetHeight ? `${widgetHeight}px` : "100%",
}
: undefined,
}); });
return ( return (

@ -1527,10 +1527,10 @@
immer "^10.0.2" immer "^10.0.2"
reconnecting-eventsource "^1.6.2" reconnecting-eventsource "^1.6.2"
"@frontend/squzanswerer@^1.0.42": "@frontend/squzanswerer@^1.0.43":
version "1.0.42" version "1.0.43"
resolved "https://penahub.gitlab.yandexcloud.net/api/v4/projects/43/packages/npm/@frontend/squzanswerer/-/@frontend/squzanswerer-1.0.42.tgz#9c904cd034c5aece72f150e8bfe717edcc8f1d53" resolved "https://penahub.gitlab.yandexcloud.net/api/v4/projects/43/packages/npm/@frontend/squzanswerer/-/@frontend/squzanswerer-1.0.43.tgz#923c08113256570278babb23f3fdfb89e4ae35b7"
integrity sha1-nJBM0DTFrs5y8VDov+cX7cyPHVM= integrity sha1-kjwIETJWVwJ4ursj8/37ieSuNbc=
dependencies: dependencies:
bowser "1.9.4" bowser "1.9.4"
country-flag-emoji-polyfill "^0.1.8" country-flag-emoji-polyfill "^0.1.8"