diff options
| author | lain <lain@soykaf.club> | 2020-06-05 17:55:19 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2020-06-05 17:55:19 +0200 |
| commit | 2aabd8ed1a75be0d4079d23d0bf6702883ff4959 (patch) | |
| tree | 39f77c292b1baf71e1513c0a9aa3d7f58122f530 | |
| parent | 63f237d7365f59114a5951d14ea473f292b1a407 (diff) | |
StillImage: Make it work properly in both firefox and chrome.
| -rw-r--r-- | src/components/still-image/still-image.vue | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue index 4137bd59..08af26f6 100644 --- a/src/components/still-image/still-image.vue +++ b/src/components/still-image/still-image.vue @@ -23,12 +23,21 @@ <style lang="scss"> @import '../../_variables.scss'; +.contain-fit { + .still-image { + img { + height: 100%; + } + } +} + .still-image { position: relative; line-height: 0; overflow: hidden; width: 100%; height: 100%; + display: flex; &:hover canvas { display: none; @@ -36,8 +45,8 @@ img { width: 100%; - height: 100%; object-fit: contain; + align-self: center; } &.animated { |
