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