From 72877b5c06dd46f7334029664175fabd4e7e16ab Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 2 Nov 2016 18:38:30 +0100 Subject: CSS fixes. --- src/components/attachment/attachment.vue | 13 ++++++++++++- src/components/status/status.vue | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src/components') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index d20b704b..0e67f48e 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -4,7 +4,7 @@ - + @@ -29,5 +29,16 @@ video { height: 100%; } + + a.image-attachment { + display: flex; + flex: 1; + + img { + width: 100%; + height: 100%; + flex: 1; + } + } } diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 4d8700d5..685ec244 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -60,4 +60,8 @@ word-break: break-all; } } + + .status-actions { + padding-top: 5px; + } -- cgit v1.2.3-70-g09d2 From 1ef6cac272f9ec27756365ab95310b25520e818c Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 3 Nov 2016 16:58:50 +0100 Subject: Attachment styling fixes. --- src/components/attachment/attachment.vue | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/components') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 0e67f48e..7feab42c 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -30,6 +30,40 @@ height: 100%; } + .oembed { + img { + width: 100%; + height: 100%; + } + } + + .oembed { + border: 1px solid rgba(0, 0, 0, 0.14); + width: 100%; + + display: flex; + .image { + flex: 1; + img { + border: 0px; + border-radius: 0; + } + } + + .text { + flex: 2; + margin: 8px; + h1 { + font-size: 14px; + margin: 0px; + + a { + color: black; + } + } + } + } + a.image-attachment { display: flex; flex: 1; -- cgit v1.2.3-70-g09d2 From 78538da82faf56dca7850e0bbb9f258b26c739fe Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 3 Nov 2016 16:59:06 +0100 Subject: Track status lists by id. --- src/components/timeline/timeline.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components') diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue index 8fdcc42f..1e779638 100644 --- a/src/components/timeline/timeline.vue +++ b/src/components/timeline/timeline.vue @@ -7,7 +7,7 @@

- + -- cgit v1.2.3-70-g09d2 From 7e2c52b12cf6883f32716230b0fdcdad7a26632b Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 3 Nov 2016 16:59:27 +0100 Subject: Add replies. --- src/components/post_status_form/post_status_form.js | 10 +++++++--- src/components/status/status.js | 12 +++++++++++- src/components/status/status.vue | 11 +++++++---- 3 files changed, 25 insertions(+), 8 deletions(-) (limited to 'src/components') diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 596c9f58..0944d841 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -1,16 +1,20 @@ import statusPoster from '../../services/status_poster/status_poster.service.js' const PostStatusForm = { - data() { + props: [ + 'replyTo' + ], + data () { return { newStatus: { } } }, methods: { - postStatus(newStatus) { + postStatus (newStatus) { statusPoster.postStatus({ status: newStatus.status, - store: this.$store + store: this.$store, + inReplyToStatusId: this.replyTo }) this.newStatus = { } } diff --git a/src/components/status/status.js b/src/components/status/status.js index f3816daa..2e6565e8 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -1,8 +1,12 @@ import Attachment from '../attachment/attachment.vue' import FavoriteButton from '../favorite_button/favorite_button.vue' +import PostStatusForm from '../post_status_form/post_status_form.vue' const Status = { props: [ 'statusoid' ], + data: () => ({ + replying: false + }), computed: { retweet () { return !!this.statusoid.retweeted_status }, retweeter () { return this.statusoid.user.name }, @@ -16,7 +20,13 @@ const Status = { }, components: { Attachment, - FavoriteButton + FavoriteButton, + PostStatusForm + }, + methods: { + toggleReplying () { + this.replying = !this.replying + } } } diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 685ec244..ab827325 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -2,7 +2,7 @@
- +
Retweeted by {{retweeter}} @@ -34,8 +34,10 @@
-
- +
@@ -43,7 +45,7 @@
- +
@@ -55,6 +57,7 @@