make favs etc strip newlines so status is more visible
This commit is contained in:
parent
2869ab787d
commit
a6c844e522
4 changed files with 7 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ const StatusContent = {
|
|||
name: 'StatusContent',
|
||||
props: [
|
||||
'compact',
|
||||
'collapse', // replaces newlines with spaces
|
||||
'status',
|
||||
'focused',
|
||||
'noHeading',
|
||||
|
|
@ -95,6 +96,9 @@ const StatusContent = {
|
|||
attachmentTypes () {
|
||||
return this.status.attachments.map(file => fileType.fileType(file.mimetype))
|
||||
},
|
||||
collapsedStatus () {
|
||||
return this.status.raw_html.replace(/(\n|<br\s?\/?>)/g, ' ')
|
||||
},
|
||||
...mapGetters(['mergedConfig'])
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
v-if="!hideSubjectStatus && !(singleLine && status.summary_raw_html)"
|
||||
:class="{ '-single-line': singleLine }"
|
||||
class="text media-body"
|
||||
:html="status.raw_html"
|
||||
:html="collapse ? collapsedStatus : status.raw_html"
|
||||
:emoji="status.emojis"
|
||||
:handle-links="true"
|
||||
:faint="compact"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue