feat: modify style

This commit is contained in:
QiShaoXuan
2022-10-18 00:28:39 +08:00
parent 249b5ab0f1
commit d7c6f7e8d5
20 changed files with 413 additions and 313 deletions

View File

@@ -19,18 +19,11 @@ const border_radius_map: Record<PopoverContainerProps['direction'], string> = {
export const PopoverContainer = styled('div')<
Pick<PopoverContainerProps, 'direction'>
>(({ theme, direction, style }) => {
return '';
// const shadow = theme.affine.shadows.shadow1;
// const white = theme.affine.palette.white;
//
// const borderRadius =
// border_radius_map[direction] || border_radius_map['left-top'];
// return {
// boxShadow: shadow,
// borderRadius: borderRadius,
// padding: '8px 4px',
// backgroundColor: white,
// ...style,
// };
>(({ direction, style }) => {
const borderRadius =
border_radius_map[direction] || border_radius_map['left-top'];
return {
borderRadius: borderRadius,
...style,
};
});