aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.vue
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2017-12-23 19:52:16 +0200
committereal <eal@waifu.club>2017-12-23 19:52:16 +0200
commitb67c50606250d2c2d4b3750affdbab6525872f2a (patch)
treebb45758ecab1ef87976c07d37b6936a3531e2b13 /src/components/attachment/attachment.vue
parent581e3e836ad6c8a9a211eb09d7eaa1fbaf830da2 (diff)
parent6fd309452a1d8243257bc8544429ea53a26ce8a4 (diff)
Merge branch 'develop' into feature/normal-emoji-completion
Diffstat (limited to 'src/components/attachment/attachment.vue')
-rw-r--r--src/components/attachment/attachment.vue12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 20d10cce..d6a51ffd 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -34,6 +34,13 @@
display: flex;
flex-wrap: wrap;
margin-right: -0.7em;
+
+ .attachment.media-upload-container {
+ flex: 0 0 auto;
+ max-height: 300px;
+ max-width: 100%;
+ }
+
.attachment {
flex: 1 0 30%;
margin: 0.5em 0.7em 0.6em 0.0em;
@@ -82,9 +89,7 @@
img.media-upload {
margin-bottom: -2px;
max-height: 300px;
- width: 100%;
- height: 100%;
- flex: 1;
+ max-width: 100%;
}
.oembed {
@@ -126,6 +131,7 @@
width: 100%;
height: 100%; /* If this isn't here, chrome will stretch the images */
max-height: 500px;
+ image-orientation: from-image;
}
}
}