From aa23ed892bd130ffab1e072187d7a8aa24aa6299 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 9ad6bfa2..d29c9697 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 1acb36e0..328962ee 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)}