aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_content
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/status_content')
-rw-r--r--src/components/status_content/status_content.js8
-rw-r--r--src/components/status_content/status_content.vue6
2 files changed, 8 insertions, 6 deletions
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js
index 527a4cf5..cf72ccb8 100644
--- a/src/components/status_content/status_content.js
+++ b/src/components/status_content/status_content.js
@@ -116,12 +116,8 @@ const StatusContent = {
toggleExpandingSubject () {
controlledOrUncontrolledToggle(this, 'expandingSubject')
},
- toggleShowMore () {
- if (this.mightHideBecauseTall) {
- this.toggleShowingTall()
- } else if (this.mightHideBecauseSubject) {
- this.toggleExpandingSubject()
- }
+ toggleShowingLongSubject () {
+ controlledOrUncontrolledToggle(this, 'showingLongSubject')
},
setMedia () {
const attachments = this.attachmentSize === 'hide' ? this.status.attachments : this.galleryAttachments
diff --git a/src/components/status_content/status_content.vue b/src/components/status_content/status_content.vue
index 69635aad..0a09cda4 100644
--- a/src/components/status_content/status_content.vue
+++ b/src/components/status_content/status_content.vue
@@ -8,6 +8,12 @@
:status="status"
:compact="compact"
:single-line="singleLine"
+ :showing-tall="showingTall"
+ :expanding-subject="expandingSubject"
+ :showing-long-subject="showingLongSubject"
+ :toggle-showing-tall="toggleShowingTall"
+ :toggle-expanding-subject="toggleExpandingSubject"
+ :toggle-showing-long-subject="toggleShowingLongSubject"
@parseReady="$emit('parseReady', $event)"
>
<div v-if="status.poll && status.poll.options && !compact">