fix(plugin): left menu postion and size

This commit is contained in:
austaras
2022-08-03 17:11:24 +08:00
committed by Austaras
parent 4a45185c44
commit 57ce992102
9 changed files with 82 additions and 82 deletions

View File

@@ -15,11 +15,11 @@ export const PopoverContainer = styled('div')<
const shadow = theme.affine.shadows.shadowSxDownLg;
const white = theme.affine.palette.white;
const border_radius =
const borderRadius =
border_radius_map[direction] || border_radius_map['left-top'];
return {
boxShadow: shadow,
borderRadius: border_radius,
borderRadius: borderRadius,
padding: '8px 4px',
backgroundColor: white,
...style,

View File

@@ -1,7 +1,7 @@
import type { MuiPopperPlacementType as PopperPlacementType } from '../mui';
import React, { forwardRef, type PropsWithChildren } from 'react';
import { type PopperHandler, Popper } from '../popper';
import { PopoverContainer } from './container';
import { PopoverContainer } from './Container';
import type { PopoverProps, PopoverDirection } from './interface';
export const placementToContainerDirection: Record<

View File

@@ -1,3 +1,3 @@
export * from './Popover';
export * from './interface';
export { PopoverContainer } from './container';
export { PopoverContainer } from './Container';