diff options
| author | ab <abdullah_ahmed@brown.edu> | 2019-03-09 16:06:18 -0500 |
|---|---|---|
| committer | ab <abdullah_ahmed@brown.edu> | 2019-03-09 16:06:18 -0500 |
| commit | a2b90031fe06701b0ecc7c6fa3b48c933e4d37b8 (patch) | |
| tree | 541052a97652ad25b0829685f205ec35d3976743 /src/client/views/nodes/ImageBox.scss | |
| parent | b72ff1323bc76dc244ebe50893aa78064fd836c7 (diff) | |
| parent | 09928503be98d605052fba65dcd2f91f9b056f23 (diff) | |
fix
Diffstat (limited to 'src/client/views/nodes/ImageBox.scss')
| -rw-r--r-- | src/client/views/nodes/ImageBox.scss | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/client/views/nodes/ImageBox.scss b/src/client/views/nodes/ImageBox.scss index 2bd8b1d3c..ea459b911 100644 --- a/src/client/views/nodes/ImageBox.scss +++ b/src/client/views/nodes/ImageBox.scss @@ -1,8 +1,17 @@ .imageBox-cont { padding: 0vw; - position: absolute; - width: 100% + position: relative; + text-align: center; + width: 100%; + height: auto; + max-width: 100%; + max-height: 100% +} + +.imageBox-cont img { + object-fit: contain; + height: 100%; } .imageBox-button { |
