mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-24 13:51:56 +03:00
feat: fix code review
This commit is contained in:
parent
45691c025d
commit
7e2ae9e45b
@ -86,9 +86,7 @@ const GridHandleContainer = styled('div')<{
|
|||||||
borderRadius: '1px',
|
borderRadius: '1px',
|
||||||
backgroundClip: 'content-box',
|
backgroundClip: 'content-box',
|
||||||
' &:hover': {
|
' &:hover': {
|
||||||
backgroundColor: isAlert
|
backgroundColor: isAlert ? 'red' : theme.affine.palette.primary,
|
||||||
? 'red !important'
|
|
||||||
: theme.affine.palette.primary,
|
|
||||||
[`.${GRID_ADD_HANDLE_NAME}`]: {
|
[`.${GRID_ADD_HANDLE_NAME}`]: {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
},
|
},
|
||||||
|
@ -30,7 +30,7 @@ export const DragItem = function ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const StyledDiv = styled('div')(theme => ({
|
const StyledDiv = styled('div')(({ theme }) => ({
|
||||||
padding: '0',
|
padding: '0',
|
||||||
display: 'inline-flex',
|
display: 'inline-flex',
|
||||||
width: `${ICON_WIDTH}px`,
|
width: `${ICON_WIDTH}px`,
|
||||||
@ -42,7 +42,7 @@ const StyledDiv = styled('div')(theme => ({
|
|||||||
},
|
},
|
||||||
':hover': {
|
':hover': {
|
||||||
backgroundColor: '#F5F7F8',
|
backgroundColor: '#F5F7F8',
|
||||||
borderRadius: '3.75px',
|
borderRadius: '4px',
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ const Draggable = styled(Button)({
|
|||||||
},
|
},
|
||||||
':hover': {
|
':hover': {
|
||||||
backgroundColor: '#F5F7F8',
|
backgroundColor: '#F5F7F8',
|
||||||
borderRadius: '3.75px',
|
borderRadius: '4px',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user