aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.scss
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-02-25 02:53:38 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-02-25 02:53:38 -0500
commit47152d960e5b79f395fb4ecc421e5aac0c12883e (patch)
treea741e3c0c476d876e14ce0859cd04eddad2885d6 /src/client/views/nodes/ImageBox.scss
parent1a32bdca177faf5a3d99bcb45aaf596ba8c706a8 (diff)
parente57c8ed3944bf737afdb2f564d159a53f8a6b1c6 (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web into authentication
Diffstat (limited to 'src/client/views/nodes/ImageBox.scss')
-rw-r--r--src/client/views/nodes/ImageBox.scss6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/nodes/ImageBox.scss b/src/client/views/nodes/ImageBox.scss
index 5b15b3329..ea459b911 100644
--- a/src/client/views/nodes/ImageBox.scss
+++ b/src/client/views/nodes/ImageBox.scss
@@ -4,12 +4,14 @@
position: relative;
text-align: center;
width: 100%;
+ height: auto;
max-width: 100%;
max-height: 100%
}
+
.imageBox-cont img {
- max-width: 100%;
- max-height: 100%
+ object-fit: contain;
+ height: 100%;
}
.imageBox-button {