diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-12 16:54:13 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-10-13 23:55:31 +0200 |
commit | 1b52eb486092745dea8781f1901c94710053ca43 (patch) | |
tree | 5ad10f7bee1ef34fd5c38d28835edf4616deef75 | |
parent | 591a89ba8ee5720064dcb237bceb5b95189a8e6e (diff) |
dont increase main post font size for now since it messes up the ui a bitbugfix/756/singlepost-improvement
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | src/components/TimelinePost.vue | 44 | ||||
-rw-r--r-- | src/views/TimelineSinglePost.vue | 5 |
2 files changed, 23 insertions, 26 deletions
diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue index 4984d1af..411dc5ff 100644 --- a/src/components/TimelinePost.vue +++ b/src/components/TimelinePost.vue @@ -141,31 +141,31 @@ export default { } }, methods: { - /** + /** * @function getSinglePostTimeline * @description Opens the timeline of the post clicked */ - getSinglePostTimeline(e) { - // Display internal or external post - if (!this.item.local) { - if (this.item.type === 'Note') { - window.open(this.item.id) - } else if (this.item.type === 'Announce') { - window.open(this.item.object) - } else { - Logger.warn("Don't know what to do with posts of type " + this.item.type, { post: this.item }) - } - } else { - this.$router.push({ name: 'single-post', - params: { - account: this.item.actor_info.preferredUsername, - id: this.item.id, - localId: this.item.id.split('/')[this.item.id.split('/').length - 1], - type: 'single-post' - } - }) - } - }, + getSinglePostTimeline(e) { + // Display internal or external post + if (!this.item.local) { + if (this.item.type === 'Note') { + window.open(this.item.id) + } else if (this.item.type === 'Announce') { + window.open(this.item.object) + } else { + Logger.warn("Don't know what to do with posts of type " + this.item.type, { post: this.item }) + } + } else { + this.$router.push({ name: 'single-post', + params: { + account: this.item.actor_info.preferredUsername, + id: this.item.id, + localId: this.item.id.split('/')[this.item.id.split('/').length - 1], + type: 'single-post' + } + }) + } + }, userDisplayName(actorInfo) { return actorInfo.name !== '' ? actorInfo.name : actorInfo.preferredUsername }, diff --git a/src/views/TimelineSinglePost.vue b/src/views/TimelineSinglePost.vue index 13a98f16..fdab3258 100644 --- a/src/views/TimelineSinglePost.vue +++ b/src/views/TimelineSinglePost.vue @@ -106,8 +106,5 @@ export default { </script> <style> - /* Show main post with a bigger font */ - .main-post { - font-size: 150%; - } + </style> |