mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
fix: profile item menu ui dense
This commit is contained in:
@@ -280,6 +280,7 @@ const ProfileItem = (props: Props) => {
|
|||||||
anchorPosition={position}
|
anchorPosition={position}
|
||||||
anchorReference="anchorPosition"
|
anchorReference="anchorPosition"
|
||||||
transitionDuration={225}
|
transitionDuration={225}
|
||||||
|
MenuListProps={{ sx: { py: 0.5 } }}
|
||||||
onContextMenu={(e) => {
|
onContextMenu={(e) => {
|
||||||
setAnchorEl(null);
|
setAnchorEl(null);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -289,7 +290,8 @@ const ProfileItem = (props: Props) => {
|
|||||||
<MenuItem
|
<MenuItem
|
||||||
key={item.label}
|
key={item.label}
|
||||||
onClick={item.handler}
|
onClick={item.handler}
|
||||||
sx={{ minWidth: 133 }}
|
sx={{ minWidth: 120 }}
|
||||||
|
dense
|
||||||
>
|
>
|
||||||
{t(item.label)}
|
{t(item.label)}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
@@ -199,6 +199,7 @@ const ProfileMore = (props: Props) => {
|
|||||||
anchorPosition={position}
|
anchorPosition={position}
|
||||||
anchorReference="anchorPosition"
|
anchorReference="anchorPosition"
|
||||||
transitionDuration={225}
|
transitionDuration={225}
|
||||||
|
MenuListProps={{ sx: { py: 0.5 } }}
|
||||||
onContextMenu={(e) => {
|
onContextMenu={(e) => {
|
||||||
setAnchorEl(null);
|
setAnchorEl(null);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -210,7 +211,8 @@ const ProfileMore = (props: Props) => {
|
|||||||
<MenuItem
|
<MenuItem
|
||||||
key={item.label}
|
key={item.label}
|
||||||
onClick={item.handler}
|
onClick={item.handler}
|
||||||
sx={{ minWidth: 133 }}
|
sx={{ minWidth: 120 }}
|
||||||
|
dense
|
||||||
>
|
>
|
||||||
{t(item.label)}
|
{t(item.label)}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|||||||
Reference in New Issue
Block a user