fix: tranbtn position: absolute

This commit is contained in:
Gabe Yuan
2023-12-11 11:38:47 +08:00
parent e9c557776d
commit 30ebebdd71
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ export default function TranBtn({ onClick, position, tranboxSetting }) {
<div
style={{
cursor: "pointer",
position: "fixed",
position: "absolute",
left: position.x + tranboxSetting.btnOffsetX,
top: position.y + tranboxSetting.btnOffsetY,
zIndex: 2147483647,