mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-01-03 07:02:50 +03:00
chore: update menu placement (#2183)
This commit is contained in:
parent
b3c1434055
commit
b6ca2aa063
@ -20,7 +20,7 @@ export const Export = ({
|
||||
return (
|
||||
<Menu
|
||||
width={248}
|
||||
// placement="left-start"
|
||||
placement="left"
|
||||
trigger="click"
|
||||
content={
|
||||
<>
|
||||
|
@ -49,7 +49,7 @@ export const MoveTo = ({
|
||||
<PinboardMenu
|
||||
anchorEl={anchorEl}
|
||||
open={open}
|
||||
// placement="left-start"
|
||||
placement="left"
|
||||
metas={metas}
|
||||
currentMeta={currentMeta}
|
||||
blockSuiteWorkspace={blockSuiteWorkspace}
|
||||
|
@ -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}
|
||||
|
@ -120,7 +120,7 @@ const AffineRemoteCollaborationPanel: React.FC<
|
||||
</MenuItem>
|
||||
</>
|
||||
}
|
||||
// placement="bottom-end"
|
||||
placement="bottom"
|
||||
disablePortal={true}
|
||||
trigger="click"
|
||||
>
|
||||
|
@ -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"
|
||||
>
|
||||
|
@ -93,7 +93,7 @@ export const EditorOptionMenu = () => {
|
||||
<Menu
|
||||
width={276}
|
||||
content={EditMenu}
|
||||
// placement="bottom-end"
|
||||
placement="bottom"
|
||||
disablePortal={true}
|
||||
trigger="click"
|
||||
>
|
||||
|
@ -16,7 +16,7 @@ export const UserAvatar = () => {
|
||||
<Menu
|
||||
width={276}
|
||||
content={EditMenu}
|
||||
// placement="bottom-end"
|
||||
placement="bottom"
|
||||
disablePortal={true}
|
||||
trigger="click"
|
||||
>
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user