From 4e2d568149322ce1e08ec481b894a9db30e3f424 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Wed, 17 Jun 2026 22:38:07 +0800 Subject: [PATCH] feat(frontend): polish chat suggestions, citations, and drawers - unify suggested-question styling across chat entry points - keep citation markers inline with their preceding list content - prevent manual editor viewport shifts and synchronize drawer motion - align embedded preview and editor drawers in the body stacking context --- .gitignore | 1 + .../src/components/EmbedChannelPreview.vue | 2 +- .../components/css/suggested-questions.less | 197 ++++++++++++++++++ .../components/manual-knowledge-editor.vue | 9 +- .../src/components/settings/SettingDrawer.vue | 41 ++-- .../src/utils/chatMarkdownRenderer.test.ts | 35 +++- frontend/src/utils/citationMarkdown.ts | 13 +- frontend/src/views/chat/index.vue | 156 ++------------ frontend/src/views/creatChat/creatChat.vue | 164 +++------------ 9 files changed, 305 insertions(+), 313 deletions(-) create mode 100644 frontend/src/components/css/suggested-questions.less diff --git a/.gitignore b/.gitignore index ca0e52d4..1423ddab 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ data/files/ data/weknora.db data/weknora.db-wal data/weknora.db-shm +skills-lock.json web/ diff --git a/frontend/src/components/EmbedChannelPreview.vue b/frontend/src/components/EmbedChannelPreview.vue index 5492d3c0..defdec12 100644 --- a/frontend/src/components/EmbedChannelPreview.vue +++ b/frontend/src/components/EmbedChannelPreview.vue @@ -1,6 +1,6 @@