From f3b4ca7a3e50556adf63dbc473e78ffdeb47e457 Mon Sep 17 00:00:00 2001 From: JimmFly Date: Tue, 3 Jan 2023 15:37:12 +0800 Subject: [PATCH] chore: delete the shortcut tips for quick search --- .../components/workspace-slider-bar/index.tsx | 6 ++-- .../components/workspace-slider-bar/style.ts | 31 ------------------- 2 files changed, 2 insertions(+), 35 deletions(-) diff --git a/packages/app/src/components/workspace-slider-bar/index.tsx b/packages/app/src/components/workspace-slider-bar/index.tsx index b40c268b90..d441f18b13 100644 --- a/packages/app/src/components/workspace-slider-bar/index.tsx +++ b/packages/app/src/components/workspace-slider-bar/index.tsx @@ -6,7 +6,6 @@ import { StyledListItem, // StyledListItemForWorkspace, StyledNewPageButton, - StyledQuickSearch, StyledSliderBar, StyledSliderBarWrapper, StyledSubListItem, @@ -117,7 +116,7 @@ export const WorkSpaceSliderBar = () => { {/* */} - { @@ -126,8 +125,7 @@ export const WorkSpaceSliderBar = () => { > Quick search - {isMac() ? '⌘ + K' : 'Ctrl + K'} - + All pages diff --git a/packages/app/src/components/workspace-slider-bar/style.ts b/packages/app/src/components/workspace-slider-bar/style.ts index 63c07844bb..f29de60a1e 100644 --- a/packages/app/src/components/workspace-slider-bar/style.ts +++ b/packages/app/src/components/workspace-slider-bar/style.ts @@ -142,34 +142,3 @@ export const StyledSubListItem = styled.button<{ }, }; }); - -export const StyledQuickSearch = styled.div(({ theme }) => { - return { - width: '296px', - height: '32px', - marginTop: '12px', - fontSize: theme.font.sm, - backgroundColor: theme.colors.hoverBackground, - color: theme.colors.popoverColor, - paddingLeft: '12px', - borderRadius: '5px', - ...displayFlex('flex-start', 'center'), - '>svg': { - fontSize: '20px', - marginRight: '12px', - }, - '>span': { - fontSize: theme.font.xs, - margin: 'auto', - marginRight: '12px', - color: theme.colors.hoverBackground, - transition: 'all .15s', - }, - ':hover': { - color: theme.colors.popoverColor, - '>span': { - color: theme.colors.popoverColor, - }, - }, - }; -});