From eb7156de0de7c713a1ac4975838c7081bc3afb39 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Fri, 17 Feb 2017 10:16:29 +0100
Subject: Fix oembed attachments.

---
 src/components/attachment/attachment.vue | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/components/attachment/attachment.vue')

diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 505182c6..94e88d52 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,7 +78,6 @@
           .oembed {
               img {
                   width: 100%;
-                  height: 100%;
               }
           }
 
-- 
cgit v1.2.3-70-g09d2


From 6c631016c6719b811d48b05e32601578e150ba13 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Fri, 17 Feb 2017 10:20:12 +0100
Subject: One more small visual fix to oembeds.

---
 src/components/attachment/attachment.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/components/attachment/attachment.vue')

diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 94e88d52..a9dbecd9 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -43,6 +43,7 @@
           align-self: flex-start;
 
           &.html {
+            border: 1px solid;
             flex-basis: 100%;
           }
 
-- 
cgit v1.2.3-70-g09d2


From cdc90f8edcfa705741151d975fdf59a954687137 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Fri, 17 Feb 2017 10:33:35 +0100
Subject: One more fix.

---
 src/components/attachment/attachment.vue | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/components/attachment/attachment.vue')

diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index a9dbecd9..311e36b8 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -43,7 +43,6 @@
           align-self: flex-start;
 
           &.html {
-            border: 1px solid;
             flex-basis: 100%;
           }
 
@@ -83,7 +82,7 @@
           }
 
           .oembed {
-              border: 1px solid rgba(0, 0, 0, 0.14);
+              border: 1px solid;
               width: 100%;
 
               display: flex;
-- 
cgit v1.2.3-70-g09d2

