Avoid using JS to set height in MediaModal (#6750)
avoid using JS to set height of ReactSwipeableViews component reduce max-height of <img/> to 80% to avoid the screen covered by image
This commit is contained in:
parent
641abe2db7
commit
fa5c867e0e
2 changed files with 24 additions and 24 deletions
|
@ -3422,8 +3422,12 @@ a.status-card {
|
|||
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;
|
||||
|
@ -3435,11 +3439,6 @@ a.status-card {
|
|||
background: url('../images/void.png') repeat;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.react-swipeable-view-container {
|
||||
width: 100vw;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.media-modal__closer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue