aboutsummaryrefslogtreecommitdiff
path: root/src/components/status
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/status')
-rw-r--r--src/components/status/status.js13
-rw-r--r--src/components/status/status.vue32
2 files changed, 37 insertions, 8 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index bc9d6e6c..87fff879 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -9,6 +9,7 @@ const Status = {
props: [
'statusoid',
'expandable',
+ 'inConversation',
'focused'
],
data: () => ({
@@ -18,7 +19,10 @@ const Status = {
userExpanded: false
}),
computed: {
- hideAttachments () { return this.$store.state.config.hideAttachments },
+ hideAttachments () {
+ return (this.$store.state.config.hideAttachments && !this.inConversation) ||
+ (this.$store.state.config.hideAttachmentsInConv && this.inConversation)
+ },
retweet () { return !!this.statusoid.retweeted_status },
retweeter () { return this.statusoid.user.name },
status () {
@@ -32,7 +36,12 @@ const Status = {
return !!this.$store.state.users.currentUser
},
muted () { return !this.unmuted && this.status.user.muted },
- isReply () { return !!this.status.in_reply_to_status_id }
+ isReply () { return !!this.status.in_reply_to_status_id },
+ borderColor () {
+ return {
+ borderBottomColor: this.$store.state.config.colors['base02']
+ }
+ }
},
components: {
Attachment,
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 6476e1e5..62a55505 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -1,5 +1,5 @@
<template>
- <div class="status-el base00-background" v-if="!status.deleted" v-bind:class="[{ 'expanded-status': !expandable }, { 'base01-background': focused }]">
+ <div class="status-el base00-background base03-border" v-if="!status.deleted" v-bind:class="[{ 'base01-background': focused }, { 'status-conversation': inConversation }]" >
<template v-if="muted">
<div class="media status container muted">
<small><router-link :to="{ name: 'user-profile', params: { id: status.user.id } }">{{status.user.screen_name}}</router-link></small>
@@ -73,18 +73,20 @@
<div class='status-actions'>
<div>
<a href="#" v-on:click.prevent="toggleReplying">
- <i class='fa icon-reply'></i>
+ <i class="fa icon-reply" :class="{'icon-reply-active': replying}"></i>
</a>
</div>
<retweet-button :status=status></retweet-button>
<favorite-button :status=status></favorite-button>
<delete-button :status=status></delete-button>
</div>
-
- <post-status-form v-if="replying" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" v-on:posted="toggleReplying"></post-status-form>
</div>
</div>
</div>
+ <div class="status base00-background container" v-if="replying">
+ <div class="reply-left"/>
+ <post-status-form class="reply-body" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" v-on:posted="toggleReplying"/>
+ </div>
</template>
</div>
</template>
@@ -98,6 +100,7 @@
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
+ border-left-width: 0px;
.user-content {
min-height: 52px;
@@ -128,8 +131,8 @@
}
}
- .expanded-status {
- border-left: 4px solid rgba(255, 48, 16, 0.65);
+ .status-conversation {
+ border-left-style: solid;
}
.status-actions {
@@ -140,6 +143,10 @@
color: $blue;
}
+ .icon-reply-active {
+ color: $blue;
+ }
+
.status .avatar {
width: 48px;
}
@@ -151,6 +158,9 @@
.status {
padding: 0.65em 0.7em 0.8em 0.8em;
border-bottom: 1px solid;
+ border-bottom-color: inherit;
+ border-left: 4px rgba(255, 48, 16, 0.65);
+ border-left-style: inherit;
}
.muted button {
margin-left: auto;
@@ -168,4 +178,14 @@
margin-bottom: 1em;
margin-top: 0.2em;
}
+
+ .reply-left {
+ flex: 0;
+ min-width: 48px;
+ }
+
+ .reply-body {
+ flex: 1;
+ }
+
</style>