♻️ Refactored attachment page

This commit is contained in:
2025-11-06 01:33:49 +08:00
parent 6da1a4d21c
commit 9f82214797
8 changed files with 264 additions and 151 deletions

View File

@@ -61,7 +61,8 @@
<v-card class="pa-6">
<article
v-if="htmlContent"
class="prose prose-xl dark:prose-invert prose-slate max-w-none mb-8"
class="prose dark:prose-invert prose-slate max-w-none mb-8"
:class="classesContent"
>
<div v-html="htmlContent" />
</article>
@@ -165,6 +166,8 @@ const {
const post = computed(() => postData.value?.post || null)
const htmlContent = computed(() => postData.value?.html || "")
const classesContent = computed(() => postData.value?.post.type == 1 ? 'prose-xl' : 'prose-md');
useHead({
title: computed(() => {
if (pending.value) return "Loading post..."