fix: tranbox ui

This commit is contained in:
Gabe Yuan
2024-04-16 11:25:04 +08:00
parent a13493ebc2
commit 148a4e97a6
7 changed files with 81 additions and 32 deletions

View File

@@ -33,7 +33,7 @@ function Header({
}) {
return (
<Stack direction="row" justifyContent="space-between" alignItems="center">
<DragIndicatorIcon />
<DragIndicatorIcon fontSize="small" />
<Stack direction="row" alignItems="center">
<IconButton
@@ -42,7 +42,11 @@ function Header({
setHideClickAway((pre) => !pre);
}}
>
{hideClickAway ? <PushPinOutlinedIcon /> : <PushPinIcon />}
{hideClickAway ? (
<PushPinOutlinedIcon fontSize="small" />
) : (
<PushPinIcon fontSize="small" />
)}
</IconButton>
<IconButton
size="small"
@@ -50,7 +54,11 @@ function Header({
setSimpleStyle((pre) => !pre);
}}
>
{simpleStyle ? <UnfoldMoreIcon /> : <UnfoldLessIcon />}
{simpleStyle ? (
<UnfoldMoreIcon fontSize="small" />
) : (
<UnfoldLessIcon fontSize="small" />
)}
</IconButton>
<IconButton
size="small"
@@ -58,7 +66,7 @@ function Header({
setShowPopup(false);
}}
>
<CloseIcon />
<CloseIcon fontSize="small" />
</IconButton>
</Stack>
</Stack>