fix: transbox ui
This commit is contained in:
@@ -32,9 +32,9 @@ function Header({
|
|||||||
setHideClickAway,
|
setHideClickAway,
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
|
<Box>
|
||||||
<Stack direction="row" justifyContent="space-between" alignItems="center">
|
<Stack direction="row" justifyContent="space-between" alignItems="center">
|
||||||
<DragIndicatorIcon fontSize="small" />
|
<DragIndicatorIcon fontSize="small" />
|
||||||
|
|
||||||
<Stack direction="row" alignItems="center">
|
<Stack direction="row" alignItems="center">
|
||||||
<IconButton
|
<IconButton
|
||||||
size="small"
|
size="small"
|
||||||
@@ -70,6 +70,8 @@ function Header({
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
<Divider />
|
||||||
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,7 +255,6 @@ export default function TranBox({
|
|||||||
onChangePosition={setBoxPosition}
|
onChangePosition={setBoxPosition}
|
||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
>
|
>
|
||||||
<Divider />
|
|
||||||
<TranForm
|
<TranForm
|
||||||
text={text}
|
text={text}
|
||||||
setText={setText}
|
setText={setText}
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ export default function Slection({
|
|||||||
|
|
||||||
const { clientX, clientY } = isMobile ? e.changedTouches[0] : e;
|
const { clientX, clientY } = isMobile ? e.changedTouches[0] : e;
|
||||||
setShowBtn(!hideTranBtn);
|
setShowBtn(!hideTranBtn);
|
||||||
// setPosition({ x: e.clientX, y: e.clientY });
|
|
||||||
setPosition({ x: clientX, y: clientY });
|
setPosition({ x: clientX, y: clientY });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user