chore: update menu placement (#2183)

This commit is contained in:
JimmFly 2023-04-28 13:40:37 +08:00 committed by GitHub
parent b3c1434055
commit b6ca2aa063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 9 deletions

View File

@ -20,7 +20,7 @@ export const Export = ({
return (
<Menu
width={248}
// placement="left-start"
placement="left"
trigger="click"
content={
<>

View File

@ -49,7 +49,7 @@ export const MoveTo = ({
<PinboardMenu
anchorEl={anchorEl}
open={open}
// placement="left-start"
placement="left"
metas={metas}
currentMeta={currentMeta}
blockSuiteWorkspace={blockSuiteWorkspace}

View File

@ -88,7 +88,7 @@ export const OperationButton = ({
width={256}
anchorEl={anchorEl}
open={operationMenuOpen}
// placement="bottom-start"
placement="bottom"
zIndex={menuIndex}
>
<MenuItem
@ -143,7 +143,7 @@ export const OperationButton = ({
<PinboardMenu
anchorEl={anchorEl}
open={pinboardMenuOpen}
// placement="bottom-start"
placement="bottom"
zIndex={menuIndex}
metas={metas}
currentMeta={currentMeta}

View File

@ -120,7 +120,7 @@ const AffineRemoteCollaborationPanel: React.FC<
</MenuItem>
</>
}
// placement="bottom-end"
placement="bottom"
disablePortal={true}
trigger="click"
>

View File

@ -104,7 +104,7 @@ export const OperationCell: React.FC<OperationCellProps> = ({
<FlexWrapper alignItems="center" justifyContent="center">
<Menu
content={OperationMenu}
// placement="bottom-end"
placement="bottom"
disablePortal={true}
trigger="click"
>

View File

@ -93,7 +93,7 @@ export const EditorOptionMenu = () => {
<Menu
width={276}
content={EditMenu}
// placement="bottom-end"
placement="bottom"
disablePortal={true}
trigger="click"
>

View File

@ -16,7 +16,7 @@ export const UserAvatar = () => {
<Menu
width={276}
content={EditMenu}
// placement="bottom-end"
placement="bottom"
disablePortal={true}
trigger="click"
>

View File

@ -123,7 +123,7 @@ export const ShareMenu: FC<ShareMenuProps> = props => {
<Menu
content={Share}
visible={open}
// placement="bottom-end"
placement="bottom"
trigger={['click']}
width={439}
disablePortal={true}