more facts

This commit is contained in:
2026-01-06 21:57:33 +00:00
parent 14b5651fe2
commit a1fa9483ed
11 changed files with 104 additions and 47 deletions

View File

@@ -66,7 +66,7 @@ onMounted(() => {
</script>
<template>
<div v-if="fetched" class="center-content">
<div v-if="fetched" class="flex-row center-content">
<h2>{{ post.title }}</h2>
<div>{{ post.content }}</div>
<p>by: {{ post.author.username }}</p>
@@ -77,7 +77,7 @@ onMounted(() => {
<button v-if="!rightCap" @click="nextPost">Next</button>
<button v-if="userOwnsPost" @click="deletePost">Delete</button>
</div>
<div v-else>
<div class="flex-col pad" v-else>
<h2>Can't fetch from the db yo</h2>
</div>
</template>