From 4190b8847d2ad4732d48179bc686ce8ef2bbf66c Mon Sep 17 00:00:00 2001 From: thislight Date: Tue, 19 Nov 2024 17:03:56 +0800 Subject: [PATCH] ProfileMenuButton: use self-built Menu --- src/material/Menu.tsx | 9 ++++---- src/timelines/ProfileMenuButton.tsx | 35 ++++++----------------------- 2 files changed, 11 insertions(+), 33 deletions(-) diff --git a/src/material/Menu.tsx b/src/material/Menu.tsx index 44628f9..0ca0f69 100644 --- a/src/material/Menu.tsx +++ b/src/material/Menu.tsx @@ -14,6 +14,7 @@ import { animateGrowFromTopRight, animateShrinkToTopRight, } from "../platform/anim"; +import type { MenuListProps } from "@suid/material/MenuList"; export type Anchor = Pick & { e?: number }; @@ -22,6 +23,7 @@ export type MenuProps = ParentProps< open?: boolean; onClose?: JSX.EventHandlerUnion; anchor: () => Anchor; + MenuListProps?: MenuListProps; id?: string; } & JSX.AriaAttributes @@ -213,11 +215,8 @@ const Menu: Component = (props) => { tabIndex={-1} {...rest} > -