mirror of https://github.com/zulip/zulip.git
styles: Size full-viewport fixed elements as 100%, not 100vw × 100vh.
Mobile Chrome includes the height of the address bar in its calculation of 100vh, which was causing a corresponding part of our content to be pushed off the bottom of the screen. Fixes #11324. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
30065b4ee8
commit
b26a420c7a
|
@ -268,8 +268,8 @@
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
|
|
|
@ -296,8 +296,8 @@ ul {
|
||||||
top: 0px !important;
|
top: 0px !important;
|
||||||
left: 0px !important;
|
left: 0px !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
|
|
||||||
background-color: hsla(0, 0%, 0%, 0.7);
|
background-color: hsla(0, 0%, 0%, 0.7);
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
|
|
|
@ -362,8 +362,8 @@ form#add_new_subscription {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
background-color: hsla(0, 0%, 8%, 0.7);
|
background-color: hsla(0, 0%, 8%, 0.7);
|
||||||
color: hsl(0, 0%, 27%);
|
color: hsl(0, 0%, 27%);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue