[Glitch] Avoid using JS to set height in MediaModal
Port fa5c867e0e
to glitch-soc
This commit is contained in:
@@ -171,8 +171,12 @@
|
||||
img,
|
||||
canvas,
|
||||
video {
|
||||
max-width: 100vw;
|
||||
max-height: 100vh;
|
||||
max-width: 100%;
|
||||
/*
|
||||
put margins on top and bottom of image to avoid the screen coverd by
|
||||
image.
|
||||
*/
|
||||
max-height: 80%;
|
||||
width: auto;
|
||||
height: auto;
|
||||
margin: auto;
|
||||
@@ -184,11 +188,6 @@
|
||||
background: url('~images/void.png') repeat;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.react-swipeable-view-container {
|
||||
width: 100vw;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.media-modal__closer {
|
||||
|
Reference in New Issue
Block a user