fix: profile item menu ui dense

This commit is contained in:
GyDi
2022-11-09 15:53:42 +08:00
parent 6e5a2f85a1
commit 5f486d0f51
2 changed files with 6 additions and 2 deletions

View File

@@ -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) => {
<MenuItem
key={item.label}
onClick={item.handler}
sx={{ minWidth: 133 }}
sx={{ minWidth: 120 }}
dense
>
{t(item.label)}
</MenuItem>