feat: support bookmark (#2458)
Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
1 parent
f4b3830a0e
commit
6d3c273ffd
19 files changed
+1311
-89
No files matched your search
@@ -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)',
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
});
|
||||
Reference in new issue
Block a user