From 2382dad18886c98dbb267c7a7b801c053b8fe43c Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Mon, 27 Apr 2026 21:35:07 +0800 Subject: [PATCH] feat(quick-note): enhance quick note editor with content change events and mobile responsiveness - Added a new event for content changes in the Quick Note Editor to improve synchronization with the modal state. - Implemented mobile viewport detection to adjust the editor's behavior and layout accordingly. - Updated the Quick Note Modal to handle editor content changes and improve resizing logic based on viewport size. - Introduced cache control headers for the Vditor route to optimize performance. These changes enhance the user experience by ensuring better content management and responsiveness in the Quick Note feature. --- app/components/AppShell.vue | 10 +++ app/components/QuickNoteEditor.vue | 20 +++++- app/components/QuickNoteModal.vue | 77 ++++++++++++--------- ...post-body-markdown-editor-vditor-config.test.ts | 1 + .../post-body-markdown-editor-vditor-config.ts | 1 + nuxt.config.ts | 5 ++ packages/drizzle-pkg/db.sqlite | Bin 188416 -> 196608 bytes 7 files changed, 80 insertions(+), 34 deletions(-) diff --git a/app/components/AppShell.vue b/app/components/AppShell.vue index d4e8acc..ece463d 100644 --- a/app/components/AppShell.vue +++ b/app/components/AppShell.vue @@ -191,6 +191,16 @@ async function logout() { variant="soft" icon="i-lucide-notebook-pen" size="sm" + class="md:hidden" + aria-label="打开速记" + @click="quickNoteModalOpen = true" + /> +