From 48ee45a560b0cfd3c11d34dbcd6e92299b61bf29 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 6 Aug 2025 11:27:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20md=20=E6=A0=BC=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/assets/global.css | 7 +++++++ frontend/src/router/index.js | 3 ++- frontend/src/views/PostPageView.vue | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/assets/global.css b/frontend/src/assets/global.css index 79965aa33..1eaff1765 100644 --- a/frontend/src/assets/global.css +++ b/frontend/src/assets/global.css @@ -94,6 +94,13 @@ body { padding-left: 1.5em; } +.info-content-text h1, +.info-content-text h2 { + border-bottom: 1px solid var(--normal-border-color); + padding-bottom: 0.3em; + margin-bottom: 0.8em; +} + .info-content-text { word-break: break-word; max-width: 100%; diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 9c91d0ebb..e640b2c5b 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -89,7 +89,8 @@ const routes = [ { path: '/users/:id', name: 'users', - component: ProfileView + component: ProfileView, + meta: { keepAlive: true } }, { path: '/github-callback', diff --git a/frontend/src/views/PostPageView.vue b/frontend/src/views/PostPageView.vue index c4f9107a3..62c5d118d 100644 --- a/frontend/src/views/PostPageView.vue +++ b/frontend/src/views/PostPageView.vue @@ -924,7 +924,7 @@ export default { .info-content-text { font-size: 16px; - line-height: 1.8; + line-height: 1.5; width: 100%; }