[U] use vh instead of % to improve scaling on mobile browsers

This commit is contained in:
Jan 2020-07-20 12:46:30 +02:00
parent 5b7485cbe9
commit 3a3c02233b

View file

@ -5,20 +5,20 @@ body {
#app, #app,
#app div { #app div {
display: flex; display: flex;
height: 100%; height: 100vh;
width: 100%; width: 100%;
} }
#app img { #app img {
width: 100%; width: 100%;
height: auto; height: auto;
max-height: 100%; max-height: 100vh;
z-index: 0; z-index: 0;
align-self: center; align-self: center;
} }
#app video { #app video {
height: 100%; height: 100vh;
margin: 0 auto; margin: 0 auto;
display: block; display: block;
} }