From 9f2a9ad27106886ec2f35620a596b468872a9380 Mon Sep 17 00:00:00 2001 From: twwu Date: Thu, 17 Jul 2025 18:22:03 +0800 Subject: [PATCH] fix: update keyboard shortcut and clean up component structure in various files --- web/app/components/app-sidebar/index.tsx | 2 +- .../datasets/list/dataset-footer/index.tsx | 2 +- web/app/components/datasets/list/datasets.tsx | 5 ++-- web/app/components/datasets/list/doc.tsx | 25 +++++++++++-------- web/app/components/datasets/list/index.tsx | 7 +++--- .../components/chunk-structure/hooks.tsx | 2 +- .../workflow/nodes/knowledge-base/node.tsx | 22 +++++++++++++--- 7 files changed, 41 insertions(+), 24 deletions(-) diff --git a/web/app/components/app-sidebar/index.tsx b/web/app/components/app-sidebar/index.tsx index 8bfd04b914..2a79518aab 100644 --- a/web/app/components/app-sidebar/index.tsx +++ b/web/app/components/app-sidebar/index.tsx @@ -68,7 +68,7 @@ const AppDetailNav = ({ } }, [appSidebarExpand, setAppSidebarExpand]) - useKeyPress(`${getKeyboardKeyCodeBySystem('ctrl')}.shift.b`, (e) => { + useKeyPress(`${getKeyboardKeyCodeBySystem('ctrl')}.b`, (e) => { e.preventDefault() handleToggle() }, { exactMatch: true, useCapture: true }) diff --git a/web/app/components/datasets/list/dataset-footer/index.tsx b/web/app/components/datasets/list/dataset-footer/index.tsx index ecc47efc89..76d99a6491 100644 --- a/web/app/components/datasets/list/dataset-footer/index.tsx +++ b/web/app/components/datasets/list/dataset-footer/index.tsx @@ -7,7 +7,7 @@ const DatasetFooter = () => { const { t } = useTranslation() return ( -