mirror of
https://github.com/zhigang1992/react.git
synced 2026-03-26 06:55:07 +08:00
docs(page): fix height of mock page on mobile screen
This commit is contained in:
@@ -31,7 +31,7 @@ const MockPage: React.FC<React.PropsWithChildren<Props>> = ({
|
||||
section {
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vw;
|
||||
height: 100vh;
|
||||
background-color: ${theme.palette.background};
|
||||
z-index: 5000;
|
||||
top: -5000px;
|
||||
@@ -42,6 +42,7 @@ const MockPage: React.FC<React.PropsWithChildren<Props>> = ({
|
||||
.active {
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
}
|
||||
`}</style>
|
||||
|
||||
Reference in New Issue
Block a user