aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.vue
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2017-11-13 11:08:34 +0200
committershpuld <shp@cock.li>2017-11-13 11:08:34 +0200
commitbac092d953eb661bcbcc06b734c509e68f939818 (patch)
tree823423f855733e1a3f54c13cb91f2015aeceb410 /src/components/attachment/attachment.vue
parentf74ad6d3e1cbfa3d855bdd993d2d6a060b8deb2d (diff)
Make oembeds behave properly, hide empty html attachments, hide overflowing timeline background.
Diffstat (limited to 'src/components/attachment/attachment.vue')
-rw-r--r--src/components/attachment/attachment.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index d4985732..954c46b4 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -1,5 +1,5 @@
<template>
- <div class="attachment base03-border" :class="{[type]: true, loading}" :style="autoHeight">
+ <div class="attachment base03-border" :class="{[type]: true, loading}" v-show="!isEmpty">
<a class="image-attachment" v-if="hidden" @click.prevent="toggleHidden()">
<img :key="nsfwImage" :src="nsfwImage"/>
</a>
@@ -50,7 +50,8 @@
}
&.html {
- flex-basis: 100%;
+ flex-basis: 90%;
+ width: 100%;
display: flex;
}