From 2cab3995e4fa3c073261e8b511d76d12826cfa97 Mon Sep 17 00:00:00 2001 From: Mohan Date: Mon, 10 Aug 2026 18:46:48 +0800 Subject: [PATCH] fix(ui): improve admin layout, comment section, article list, and article detail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CommentSection: auto-fill username/email when logged in, readonly fields, dashed dividers - SongInput: add disabled/readonly props with visual styling - AdminLayout: restore sticky topbar with page title, remove sidebar title/foot, full-height sidebar - App.vue: sticky header, page title, wave decoration, fix dark mode toggle label (日/夜) - ArticleListView: adjust column widths (status 80px, actions 160px), replace text buttons with SVG icons - ArticleDetailView: import github-markdown-css, use markdown-body class, DOMPurify for HTML, Noto Serif SC headings --- src/App.vue | 59 ++++++++++++++++++-- src/components/CommentSection.vue | 27 ++++++++- src/components/SongInput.vue | 15 ++++- src/views/ArticleDetailView.vue | 24 +++++++- src/views/admin/AdminLayout.vue | 86 +++++------------------------ src/views/admin/ArticleListView.vue | 75 ++++++++++++++++++++----- 6 files changed, 192 insertions(+), 94 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5950714..25bcd2a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,12 +1,21 @@ @@ -119,6 +130,7 @@ watch(slug, load, { immediate: true }) letter-spacing: 0.02em; margin: 0 0 12px; font-size: 28px; + line-height: 1.5; } .detail-summary { @@ -152,6 +164,16 @@ watch(slug, load, { immediate: true }) border-top: 1px solid var(--ac-border); padding-top: 20px; word-break: break-word; + background: transparent; + color: var(--ac-text); + font-family: var(--song-font-sans), system-ui, sans-serif; +} + +:deep(.markdown-body h1), +:deep(.markdown-body h2), +:deep(.markdown-body h3), +:deep(.markdown-body h4) { + font-family: 'Noto Serif SC', 'SimSun', 'STSong', serif; } .hint-text { diff --git a/src/views/admin/AdminLayout.vue b/src/views/admin/AdminLayout.vue index 33fb978..bdd7e22 100644 --- a/src/views/admin/AdminLayout.vue +++ b/src/views/admin/AdminLayout.vue @@ -1,45 +1,27 @@