Compare commits

...

3 Commits

Author SHA1 Message Date
b0c54c69c3 Problem: unread items are not really visible
Solution: use blue outline for unread items
2021-11-20 23:42:26 +01:00
dbcf2e24bf Problem: bookmarks don't show references posts
Solution: bookmarks should be handled as references
2021-11-20 23:41:40 +01:00
c1027e6d48 Problem: item stays open when the item changed
Solution: close the item when the item changes
2021-11-20 23:41:04 +01:00

View File

@ -254,14 +254,19 @@ export default {
return this.item.refs[this.item['like-of']] return this.item.refs[this.item['like-of']]
} else if (this.isRepost) { } else if (this.isRepost) {
return this.item.refs[this.item['repost-of']] return this.item.refs[this.item['repost-of']]
} else if (this.isBookmark) {
return this.item.refs[this.item['bookmark-of']]
} }
}, },
isRef() { isRef() {
return this.isLike || this.isRepost return this.isLike || this.isRepost || this.isBookmark
}, },
isLike() { isLike() {
return this.hasRef('like-of') return this.hasRef('like-of')
}, },
isBookmark() {
return this.hasRef('bookmark-of')
},
isRepost() { isRepost() {
return this.hasRef('repost-of') return this.hasRef('repost-of')
}, },
@ -272,6 +277,9 @@ export default {
if (this.isRepost) { if (this.isRepost) {
return 'reposted' return 'reposted'
} }
if (this.isBookmark) {
return 'bookmarked'
}
return '' return ''
}, },
main_content() { main_content() {
@ -370,6 +378,7 @@ export default {
return return
} }
this.hasHiddenContent = el.scrollHeight > el.clientHeight this.hasHiddenContent = el.scrollHeight > el.clientHeight
this.hiddenContentVisible = false
}) })
} }
} }
@ -378,7 +387,7 @@ export default {
<style scoped> <style scoped>
.entry.unread { .entry.unread {
border-color: #555; outline: 2px solid #5757e8;
} }
.media .entry { .media .entry {