From ea25708bf365e865334877c8625996f9386b44e0 Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Sat, 4 Feb 2017 13:51:44 +0100
Subject: Set color on status instead of on timeline.

---
 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 e043f6e2..10e321a1 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -1,5 +1,5 @@
 <template>
-  <div class="status-el" v-if="!status.deleted">
+  <div class="status-el base00-background" v-if="!status.deleted">
     <div v-if="retweet" class="media container retweet-info">
       <div class="media-left">
         <i class='fa icon-retweet retweeted'></i>
-- 
cgit v1.2.3-70-g09d2


From 2269e815e1829558295e8c1d83ed1235644e02dd Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Sat, 4 Feb 2017 13:53:28 +0100
Subject: Make status expandable into conversation.

---
 src/components/status/status.js  | 11 +++++++++--
 src/components/status/status.vue | 10 ++++++----
 2 files changed, 15 insertions(+), 6 deletions(-)

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

diff --git a/src/components/status/status.js b/src/components/status/status.js
index 27911478..40589ea5 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -5,9 +5,13 @@ import DeleteButton from '../delete_button/delete_button.vue'
 import PostStatusForm from '../post_status_form/post_status_form.vue'
 
 const Status = {
-  props: [ 'statusoid' ],
+  props: [
+    'statusoid',
+    'expandable'
+  ],
   data: () => ({
-    replying: false
+    replying: false,
+    expanded: false
   }),
   computed: {
     retweet () { return !!this.statusoid.retweeted_status },
@@ -33,6 +37,9 @@ const Status = {
   methods: {
     toggleReplying () {
       this.replying = !this.replying
+    },
+    toggleExpanded () {
+      this.$emit('toggleExpanded')
     }
   }
 }
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 10e321a1..f113fb7e 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -30,6 +30,12 @@
                 <timeago :since="status.created_at" :auto-update="60"></timeago>
               </router-link>
             </small>
+            <template v-if="expandable">
+              -
+              <small>
+                <a href="#" @click.prevent="toggleExpanded" >Expand</a>
+              </small>
+            </template>
             <small v-if="!status.is_local" class="source_url">
               <a :href="status.external_url" target="_blank" >Source</a>
             </small>
@@ -122,8 +128,4 @@
      padding-right: 1em;
      border-bottom: 1px solid;
  }
-
- .status-el:last-child .status {
-     border-bottom: none
- }
 </style>
-- 
cgit v1.2.3-70-g09d2

