From 734597b43f0376c8df1f64c54f9fec592ffea51f Mon Sep 17 00:00:00 2001
From: hakui <hakui@airmail.cc>
Date: Sat, 18 Feb 2017 01:48:35 -0600
Subject: hello world

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

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

diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 311e36b8..7f6622b4 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -39,7 +39,7 @@
       .attachment {
           flex: 1 0 30%;
           display: flex;
-          margin: 0.2em;
+          margin: 0.5em 0.8em 0.6em 0.1em;
           align-self: flex-start;
 
           &.html {
@@ -79,6 +79,7 @@
               img {
                   width: 100%;
               }
+              margin-right: 15px;
           }
 
           .oembed {
-- 
cgit v1.2.3-70-g09d2


From a4592445a36d1985ecfb66659103916e32a0842e Mon Sep 17 00:00:00 2001
From: hakui <hakui@airmail.cc>
Date: Sat, 18 Feb 2017 02:58:44 -0600
Subject: making link thumbnails fit the whole box

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

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

diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index 7f6622b4..a294901b 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -92,6 +92,8 @@
                   img {
                       border: 0px;
                       border-radius: 0;
+                      height: 100%;
+                      object-fit: cover;
                   }
               }
 
-- 
cgit v1.2.3-70-g09d2


From 04c4ad9a6572167f049b833fc343b8eba819ac46 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Sun, 19 Feb 2017 12:58:25 +0100
Subject: Open clicked links the statusnet_html in a new window.

---
 src/components/attachment/attachment.js  | 5 +++++
 src/components/attachment/attachment.vue | 2 +-
 src/components/status/status.js          | 5 +++++
 src/components/status/status.vue         | 2 +-
 4 files changed, 12 insertions(+), 2 deletions(-)

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

diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index c88497a2..57d21b28 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -20,6 +20,11 @@ const Attachment = {
     }
   },
   methods: {
+    linkClicked ({target}) {
+      if (target.tagName === 'A') {
+        window.open(target.href, '_blank')
+      }
+    },
     toggleHidden () {
       this.showHidden = !this.showHidden
     }
diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue
index a294901b..738a1e86 100644
--- a/src/components/attachment/attachment.vue
+++ b/src/components/attachment/attachment.vue
@@ -18,7 +18,7 @@
 
     <span v-if="type === 'unknown'">Don't know how to display this...</span>
 
-    <div v-if="type === 'html' && attachment.oembed" class="oembed">
+    <div @click.prevent="linkClicked" v-if="type === 'html' && attachment.oembed" class="oembed">
       <div v-if="attachment.thumb_url" class="image">
         <img :src="attachment.thumb_url"></img>
       </div>
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 030e22b5..e75400cb 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -40,6 +40,11 @@ const Status = {
     UserCardContent
   },
   methods: {
+    linkClicked ({target}) {
+      if (target.tagName === 'A') {
+        window.open(target.href, '_blank')
+      }
+    },
     toggleReplying () {
       this.replying = !this.replying
     },
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 47e14d28..162ab140 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -54,7 +54,7 @@
               </small>
             </h4>
 
-            <div class="status-content" v-html="status.statusnet_html"></div>
+            <div @click.prevent="linkClicked" class="status-content" v-html="status.statusnet_html"></div>
 
             <div v-if='status.attachments' class='attachments'>
               <attachment :status-id="status.id" :nsfw="status.nsfw" :attachment="attachment" v-for="attachment in status.attachments">
-- 
cgit v1.2.3-70-g09d2

