replace vh units
This commit is contained in:
parent
df54d2c4e6
commit
ededa7e339
@ -1,3 +1,5 @@
|
||||
## Правила
|
||||
- Запрещено использовать vh/vw css-юниты и их производные
|
||||
## Виджет
|
||||
### Сборка
|
||||
```bash
|
||||
|
@ -179,7 +179,7 @@ export const ContactForm = ({currentQuestion, onShowResult}: Props) => {
|
||||
width: isWide && !isMobile ? "100%" : isMobile ? undefined : "530px",
|
||||
borderRadius: "4px",
|
||||
height: "100%",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
display: isWide && !isMobile ? "flex" : undefined,
|
||||
background: settings.cfg.design && !isMobile
|
||||
? quizThemes[settings.cfg.theme].isLight
|
||||
|
@ -35,7 +35,7 @@ export const ResultForm = ({resultQuestion}: ResultFormProps) => {
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
height: "100%",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
width: "100%",
|
||||
overflow: "auto",
|
||||
backgroundColor: theme.palette.background.default,
|
||||
|
@ -36,7 +36,7 @@ const StandartLayout = ({
|
||||
sx={{
|
||||
display: "flex",
|
||||
flexDirection: alignType === "left" ? "row" : "row-reverse",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
backgroundPosition: "center",
|
||||
backgroundSize: "cover",
|
||||
backgroundImage: settings.cfg.design
|
||||
@ -78,7 +78,7 @@ const ExpandedLayout = ({
|
||||
<Box
|
||||
sx={{
|
||||
zIndex: 3,
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
width: "40%",
|
||||
padding: "16px",
|
||||
margin:
|
||||
@ -137,7 +137,7 @@ const CenteredLayout = ({
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
alignItems: "center",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
backgroundPosition: "center",
|
||||
backgroundSize: "cover",
|
||||
backgroundImage: settings.cfg.design
|
||||
|
@ -31,7 +31,7 @@ const StandartMobileLayout = ({
|
||||
flexDirection: "column-reverse",
|
||||
flexGrow: 1,
|
||||
justifyContent: "flex-end",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
height: "100%",
|
||||
"&::-webkit-scrollbar": { width: 0 },
|
||||
backgroundPosition: "center",
|
||||
@ -97,7 +97,7 @@ const ExpandedMobileLayout = ({
|
||||
flexDirection: "column-reverse",
|
||||
flexGrow: 1,
|
||||
justifyContent: "flex-end",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
height: "100%",
|
||||
"&::-webkit-scrollbar": { width: 0 },
|
||||
}}
|
||||
@ -140,11 +140,11 @@ const ExpandedMobileLayout = ({
|
||||
left: 0,
|
||||
top: 0,
|
||||
width: "100%",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
overflow: "hidden",
|
||||
"& > img": {
|
||||
display: "block",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
},
|
||||
}}
|
||||
>
|
||||
@ -166,7 +166,7 @@ const CenteredMobileLayout = ({
|
||||
flexDirection: "column-reverse",
|
||||
flexGrow: 1,
|
||||
justifyContent: "flex-end",
|
||||
minHeight: "100vh",
|
||||
minHeight: "100%",
|
||||
height: "100%",
|
||||
backgroundPosition: "center",
|
||||
backgroundSize: "cover",
|
||||
|
@ -21,7 +21,6 @@ import { quizThemes } from "@utils/themes/Publication/themePublication";
|
||||
import { DESIGN_LIST } from "../Question";
|
||||
|
||||
import { NameplateLogo } from "@icons/NameplateLogo";
|
||||
import PenaLogo from "@icons/PenaLogo.png";
|
||||
|
||||
export const StartPageViewPublication = () => {
|
||||
const theme = useTheme();
|
||||
@ -51,7 +50,7 @@ export const StartPageViewPublication = () => {
|
||||
: undefined,
|
||||
height: "100%",
|
||||
minWidth: "100%",
|
||||
maxHeight: "100vh",
|
||||
maxHeight: "100%",
|
||||
objectFit: "cover",
|
||||
overflow: "hidden",
|
||||
}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@frontend/squzanswerer",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.13",
|
||||
"type": "module",
|
||||
"main": "./dist-package/index.js",
|
||||
"module": "./dist-package/index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user