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 { styled } from '@toeverything/components/ui';
|
||||||
import { Point } from '@toeverything/utils';
|
import { Point } from '@toeverything/utils';
|
||||||
|
|
||||||
export const ICON_WIDTH = 24;
|
export const ICON_WIDTH = 16;
|
||||||
|
|
||||||
type DragItemProps = {
|
type DragItemProps = {
|
||||||
isShow: boolean;
|
isShow: boolean;
|
||||||
@@ -30,17 +30,21 @@ export const DragItem = function ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const StyledDiv = styled('div')({
|
const StyledDiv = styled('div')(theme => ({
|
||||||
padding: '0',
|
padding: '0',
|
||||||
display: 'inlineFlex',
|
display: 'inline-flex',
|
||||||
width: `${ICON_WIDTH}px`,
|
width: `${ICON_WIDTH}px`,
|
||||||
height: `${ICON_WIDTH}px`,
|
height: '20px',
|
||||||
cursor: 'grab',
|
cursor: 'grab',
|
||||||
':hover': {
|
'& svg': {
|
||||||
backgroundColor: '#edeef0',
|
fontSize: '20px',
|
||||||
borderRadius: '4px',
|
marginLeft: '-2px',
|
||||||
},
|
},
|
||||||
});
|
':hover': {
|
||||||
|
backgroundColor: '#F5F7F8',
|
||||||
|
borderRadius: '3.75px',
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
const StyledButton = styled('div')({
|
const StyledButton = styled('div')({
|
||||||
padding: '0',
|
padding: '0',
|
||||||
|
|||||||
@@ -239,11 +239,15 @@ const Draggable = styled(Button)({
|
|||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
width: '24px',
|
width: '16px',
|
||||||
height: '24px',
|
height: '20px',
|
||||||
|
'& svg': {
|
||||||
|
fontSize: '20px',
|
||||||
|
marginLeft: '-2px',
|
||||||
|
},
|
||||||
':hover': {
|
':hover': {
|
||||||
backgroundColor: '#edeef0',
|
backgroundColor: '#F5F7F8',
|
||||||
borderRadius: '4px',
|
borderRadius: '3.75px',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user