feat: improve appearance

finxol.io 76176c31 bdea9b80

verified
Changed files
+13 -10
app
components
+13 -10
app/components/BskyComments.vue
···
}
if (data.value.$type === "app.bsky.feed.defs#threadViewPost") {
+
console.log(data.value);
post.value = data.value;
}
</script>
<template>
-
<h3>Join the conversation!</h3>
+
<div class="flex items-baseline gap-4 mb-4">
+
<h3 class="font-bold text-xl">Join the conversation!</h3>
+
<p class="text-gray-500 text-sm">{{post.post.replyCount}} replies</p>
+
</div>
<div v-if="err">
<div>{{ err }}</div>
···
<div>No replies yet!</div>
</div>
-
<div v-else>
-
<p>{{post.post.replyCount}} replies</p>
-
-
<div v-for="reply in post.replies">
-
<a :href="`https://bsky.app/profile/${reply.post.author.handle}`" class="text-blue-500 hover:underline">
-
{{ reply.post.author.displayName }}
-
</a>
-
<div>{{ reply.post.record.text }}</div>
-
</div>
+
<div v-else v-for="reply in post.replies" class="mt-4">
+
<a :href="`https://bsky.app/profile/${reply.post.author.handle}`" class="flex items-center gap-2 text-blue-500 hover:underline w-fit">
+
<img :src="reply.post.author.avatar" :alt="reply.post.author.displayName" class="size-8 rounded-full" />
+
<span>
+
{{ reply.post.author.displayName }}
+
</span>
+
</a>
+
<div class="ml-10">{{ reply.post.record.text }}</div>
</div>
</div>
</template>