aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/attachment')
-rw-r--r--src/components/attachment/attachment.vue9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 505182c6..311e36b8 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -1,5 +1,5 @@
<template>
- <div class="attachment">
+ <div class="attachment" :class="type">
<a class="image-attachment" v-if="hidden" v-on:click.prevent="toggleHidden()">
<img :key="nsfwImage" :src="nsfwImage"></img>
</a>
@@ -42,6 +42,10 @@
margin: 0.2em;
align-self: flex-start;
+ &.html {
+ flex-basis: 100%;
+ }
+
.hider {
position: absolute;
margin: 10px;
@@ -74,12 +78,11 @@
.oembed {
img {
width: 100%;
- height: 100%;
}
}
.oembed {
- border: 1px solid rgba(0, 0, 0, 0.14);
+ border: 1px solid;
width: 100%;
display: flex;