feat: support bookmark (#2458)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
Qiandhimself65 authored and GitHub committed 2023-05-26 06:52:36 +00:00
1 parent f4b3830a0e
commit 6d3c273ffd
19 files changed
+1311 -89

No files matched your search

+8 -1
View File
@@ -51,7 +51,8 @@ export const StyledContent = styled('div')(() => {
export const StyledMenuItem = styled('button')<{
isDir?: boolean;
disabled?: boolean;
}>(({ isDir = false, disabled = false }) => {
active?: boolean;
}>(({ isDir = false, disabled = false, active = false }) => {
return {
width: '100%',
borderRadius: '5px',
@@ -82,5 +83,11 @@ export const StyledMenuItem = styled('button')<{
: {
backgroundColor: 'var(--affine-hover-color)',
},
...(active && !disabled
? {
backgroundColor: 'var(--affine-hover-color)',
}
: {}),
};
});