diff options
| author | laurawilsonri <laura_wilson@brown.edu> | 2019-02-25 20:11:37 -0500 |
|---|---|---|
| committer | laurawilsonri <laura_wilson@brown.edu> | 2019-02-25 20:11:37 -0500 |
| commit | 3ef178ab23eae665a7323ae54e14114a2b6e656e (patch) | |
| tree | 5f97a342f4e1e8d322035158e53eaf4bd4774305 /src/client/views/nodes/ImageBox.scss | |
| parent | 171852260c04ba7aafd789b231d98cdaa2a7dc8d (diff) | |
| parent | 292ff1a8d75f8b15f9388d2c577e09a13836d5dc (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into improveText
Diffstat (limited to 'src/client/views/nodes/ImageBox.scss')
| -rw-r--r-- | src/client/views/nodes/ImageBox.scss | 6 |
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 { |
