From 5f486d0f51666e5c495d6dc44b7550f6ad6597d2 Mon Sep 17 00:00:00 2001 From: GyDi Date: Wed, 9 Nov 2022 15:53:42 +0800 Subject: [PATCH] fix: profile item menu ui dense --- src/components/profile/profile-item.tsx | 4 +++- src/components/profile/profile-more.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/profile/profile-item.tsx b/src/components/profile/profile-item.tsx index 9ad6bfa..d29c969 100644 --- a/src/components/profile/profile-item.tsx +++ b/src/components/profile/profile-item.tsx @@ -280,6 +280,7 @@ const ProfileItem = (props: Props) => { anchorPosition={position} anchorReference="anchorPosition" transitionDuration={225} + MenuListProps={{ sx: { py: 0.5 } }} onContextMenu={(e) => { setAnchorEl(null); e.preventDefault(); @@ -289,7 +290,8 @@ const ProfileItem = (props: Props) => { {t(item.label)} diff --git a/src/components/profile/profile-more.tsx b/src/components/profile/profile-more.tsx index 1acb36e..328962e 100644 --- a/src/components/profile/profile-more.tsx +++ b/src/components/profile/profile-more.tsx @@ -199,6 +199,7 @@ const ProfileMore = (props: Props) => { anchorPosition={position} anchorReference="anchorPosition" transitionDuration={225} + MenuListProps={{ sx: { py: 0.5 } }} onContextMenu={(e) => { setAnchorEl(null); e.preventDefault(); @@ -210,7 +211,8 @@ const ProfileMore = (props: Props) => { {t(item.label)}