fix: menu style (#4287)

This commit is contained in:
JimmFly
2023-09-11 14:41:36 +08:00
committed by GitHub
parent 46fd732ee6
commit b7b14c2241
22 changed files with 153 additions and 81 deletions
@@ -83,6 +83,7 @@ export const PageMenu = ({ rename, pageId }: PageMenuProps) => {
}, [pageId, removeToTrash, t]);
const menuItemStyle = {
padding: '4px 12px',
transition: 'all 0.3s',
};
const { openPage } = useNavigateHelper();
const { createPage } = useBlockSuiteWorkspaceHelper(blockSuiteWorkspace);
@@ -214,11 +215,9 @@ export const PageMenu = ({ rename, pageId }: PageMenuProps) => {
portalOptions={{
container: ref.current,
}}
// menuStyles={{
// borderRadius: '8px',
// padding: '8px',
// background: 'var(--affine-background-overlay-panel-color)',
// }}
contentOptions={{
align: 'center',
}}
>
<HeaderDropDownButton />
</Menu>