mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat: change left menu icon style
This commit is contained in:
@@ -4,7 +4,7 @@ import { HandleParentIcon } from '@toeverything/components/icons';
|
||||
import { styled } from '@toeverything/components/ui';
|
||||
import { Point } from '@toeverything/utils';
|
||||
|
||||
export const ICON_WIDTH = 24;
|
||||
export const ICON_WIDTH = 16;
|
||||
|
||||
type DragItemProps = {
|
||||
isShow: boolean;
|
||||
@@ -30,17 +30,21 @@ export const DragItem = function ({
|
||||
);
|
||||
};
|
||||
|
||||
const StyledDiv = styled('div')({
|
||||
const StyledDiv = styled('div')(theme => ({
|
||||
padding: '0',
|
||||
display: 'inlineFlex',
|
||||
display: 'inline-flex',
|
||||
width: `${ICON_WIDTH}px`,
|
||||
height: `${ICON_WIDTH}px`,
|
||||
height: '20px',
|
||||
cursor: 'grab',
|
||||
':hover': {
|
||||
backgroundColor: '#edeef0',
|
||||
borderRadius: '4px',
|
||||
'& svg': {
|
||||
fontSize: '20px',
|
||||
marginLeft: '-2px',
|
||||
},
|
||||
});
|
||||
':hover': {
|
||||
backgroundColor: '#F5F7F8',
|
||||
borderRadius: '3.75px',
|
||||
},
|
||||
}));
|
||||
|
||||
const StyledButton = styled('div')({
|
||||
padding: '0',
|
||||
|
||||
@@ -239,11 +239,15 @@ const Draggable = styled(Button)({
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
backgroundColor: 'transparent',
|
||||
width: '24px',
|
||||
height: '24px',
|
||||
width: '16px',
|
||||
height: '20px',
|
||||
'& svg': {
|
||||
fontSize: '20px',
|
||||
marginLeft: '-2px',
|
||||
},
|
||||
':hover': {
|
||||
backgroundColor: '#edeef0',
|
||||
borderRadius: '4px',
|
||||
backgroundColor: '#F5F7F8',
|
||||
borderRadius: '3.75px',
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user