Make oembeds behave properly, hide empty html attachments, hide overflowing timeline background.
This commit is contained in:
parent
f74ad6d3e1
commit
bac092d953
3 changed files with 7 additions and 9 deletions
src/components/attachment
|
@ -23,12 +23,8 @@ const Attachment = {
|
|||
hidden () {
|
||||
return this.nsfw && this.hideNsfwLocal && !this.showHidden
|
||||
},
|
||||
autoHeight () {
|
||||
if (this.type === 'image' && this.nsfw) {
|
||||
return {
|
||||
'min-height': '109px'
|
||||
}
|
||||
}
|
||||
isEmpty () {
|
||||
return this.type === 'html' && !this.attachment.oembed
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue