mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 10:05:02 +03:00
chore: delete the shortcut tips for quick search
This commit is contained in:
parent
8b827c2f37
commit
f3b4ca7a3e
@ -6,7 +6,6 @@ import {
|
||||
StyledListItem,
|
||||
// StyledListItemForWorkspace,
|
||||
StyledNewPageButton,
|
||||
StyledQuickSearch,
|
||||
StyledSliderBar,
|
||||
StyledSliderBarWrapper,
|
||||
StyledSubListItem,
|
||||
@ -117,7 +116,7 @@ export const WorkSpaceSliderBar = () => {
|
||||
{/* <StyledListItemForWorkspace>
|
||||
<WorkspaceSelector />
|
||||
</StyledListItemForWorkspace> */}
|
||||
<StyledQuickSearch
|
||||
<StyledListItem
|
||||
data-testid="sliderBar-quickSearchButton"
|
||||
style={{ cursor: 'pointer' }}
|
||||
onClick={() => {
|
||||
@ -126,8 +125,7 @@ export const WorkSpaceSliderBar = () => {
|
||||
>
|
||||
<SearchIcon />
|
||||
Quick search
|
||||
<span>{isMac() ? '⌘ + K' : 'Ctrl + K'}</span>
|
||||
</StyledQuickSearch>
|
||||
</StyledListItem>
|
||||
<Link href={{ pathname: paths.all }}>
|
||||
<StyledListItem active={router.asPath === paths.all}>
|
||||
<AllPagesIcon /> <span>All pages</span>
|
||||
|
@ -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,
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user