feat: change left menu icon style

This commit is contained in:
SaikaSakura
2022-08-02 17:27:06 +08:00
committed by Austaras
parent 28f744e57c
commit 3070322393
2 changed files with 20 additions and 12 deletions

View File

@@ -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',

View File

@@ -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',
},
});