aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2020-06-05 16:06:19 +0000
committerShpuld Shpludson <shp@cock.li>2020-06-05 16:06:19 +0000
commitf6d5922e655b2bd260f534788de72991a9b3cc35 (patch)
tree39f77c292b1baf71e1513c0a9aa3d7f58122f530 /src
parent63f237d7365f59114a5951d14ea473f292b1a407 (diff)
parent2aabd8ed1a75be0d4079d23d0bf6702883ff4959 (diff)
Merge branch '851-fix-squishy-images' into 'develop'
StillImage: Make it work properly in both firefox and chrome. Closes #851 See merge request pleroma/pleroma-fe!1132
Diffstat (limited to 'src')
-rw-r--r--src/components/still-image/still-image.vue11
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 {