fix: ui issues (#3738)

Co-authored-by: Alex Yang <himself65@outlook.com>
(cherry picked from commit 75a2bbdfac)
This commit is contained in:
Qi
2023-08-15 02:48:18 +08:00
committed by Alex Yang
parent 90f3fe0e29
commit 04172c5b04
23 changed files with 125 additions and 138 deletions
@@ -6,7 +6,7 @@ export const MenuTrigger = forwardRef<HTMLButtonElement, ButtonProps>(
({ children, ...props }, ref) => {
return (
<Button
type="plain"
// type="plain"
ref={ref}
icon={<ArrowDownSmallIcon />}
iconPosition="end"
+2 -1
View File
@@ -13,6 +13,7 @@ export const StyledMenuWrapper = styled(StyledPopperContainer, {
return {
width,
height,
minWidth: '200px',
background: 'var(--affine-white)',
padding: '8px 4px',
fontSize: '14px',
@@ -63,7 +64,7 @@ export const StyledMenuItem = styled('button')<{
width: '100%',
borderRadius: '5px',
padding: '0 14px',
fontSize: 'var(--affine-font-base)',
fontSize: 'var(--affine-font-sm)',
height: '32px',
...displayFlex('flex-start', 'center'),
cursor: isDir ? 'pointer' : '',