dont increase main post font size for now since it messes up the ui a bit

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/793/head
Robin Appelman 2020-10-12 16:54:13 +02:00
rodzic 591a89ba8e
commit 1b52eb4860
2 zmienionych plików z 23 dodań i 26 usunięć

Wyświetl plik

@ -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
},

Wyświetl plik

@ -106,8 +106,5 @@ export default {
</script>
<style>
/* Show main post with a bigger font */
.main-post {
font-size: 150%;
}
</style>