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/status/status.vue | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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

diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 0c004936..47e14d28 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -94,6 +94,7 @@
 
      .user-content {
        min-height: 52px;
+       padding-top: 1px;
      }
 
      .source_url {
@@ -110,8 +111,7 @@
      }
 
      .status-content {
-         margin-top: 3px;
-         margin-bottom: 3px;
+         margin: 3px 15px 4px 0;
      }
 
      p {
@@ -138,8 +138,7 @@
  }
 
  .status {
-     padding: 0.5em;
-     padding-right: 1em;
+     padding: 0.65em 0.7em 0.8em 0.8em;
      border-bottom: 1px solid;
  }
  .muted button {
-- 
cgit v1.2.3-70-g09d2


From 2f4d8110797b903920ae821bbc3c6419609acb5e Mon Sep 17 00:00:00 2001
From: hakui <hakui@airmail.cc>
Date: Sat, 18 Feb 2017 03:10:02 -0600
Subject: removed break-line for links because it didn't seem to make sense

---
 src/components/status/status.vue | 1 -
 1 file changed, 1 deletion(-)

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

diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 47e14d28..85d78d2e 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -107,7 +107,6 @@
 
      a {
          display: inline-block;
-         word-break: break-all;
      }
 
      .status-content {
-- 
cgit v1.2.3-70-g09d2


From 1ccc9dd629b2ecfe3883f337f39120da810813d0 Mon Sep 17 00:00:00 2001
From: hakui <hakui@airmail.cc>
Date: Sat, 18 Feb 2017 12:51:47 -0600
Subject: wrap long urls while not breaking normal words. also practicing the
 new branch thing

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

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

diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 85d78d2e..4d4f7046 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -107,6 +107,7 @@
 
      a {
          display: inline-block;
+         word-wrap: break-word;
      }
 
      .status-content {
-- 
cgit v1.2.3-70-g09d2


From 5f74ae8de5bb94fa3a277dc2f0b0a8dbdb0bf879 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Sun, 19 Feb 2017 12:13:56 +0100
Subject: Revert "removed break-line for links because it didn't seem to make
 sense"

This reverts commit 2f4d8110797b903920ae821bbc3c6419609acb5e.
---
 src/components/status/status.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 4d4f7046..47e14d28 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -107,7 +107,7 @@
 
      a {
          display: inline-block;
-         word-wrap: break-word;
+         word-break: break-all;
      }
 
      .status-content {
-- 
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/status/status.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

