fix(tool): hide repair
This commit is contained in:
@@ -2505,9 +2505,9 @@ const LabelPage = ({
|
||||
reportUserActivity()
|
||||
}
|
||||
}
|
||||
const handleWheel = () => {
|
||||
reportUserActivity()
|
||||
}
|
||||
// const handleWheel = () => {
|
||||
// reportUserActivity()
|
||||
// }
|
||||
const handleKeyDown = () => {
|
||||
reportUserActivity(true)
|
||||
}
|
||||
@@ -2519,14 +2519,14 @@ const LabelPage = ({
|
||||
|
||||
window.addEventListener("pointerdown", handlePointerDown, true)
|
||||
window.addEventListener("pointermove", handlePointerMove, true)
|
||||
window.addEventListener("wheel", handleWheel, true)
|
||||
// window.addEventListener("wheel", handleWheel, true)
|
||||
window.addEventListener("keydown", handleKeyDown, true)
|
||||
document.addEventListener("visibilitychange", handleVisibilityChange)
|
||||
|
||||
return () => {
|
||||
window.removeEventListener("pointerdown", handlePointerDown, true)
|
||||
window.removeEventListener("pointermove", handlePointerMove, true)
|
||||
window.removeEventListener("wheel", handleWheel, true)
|
||||
// window.removeEventListener("wheel", handleWheel, true)
|
||||
window.removeEventListener("keydown", handleKeyDown, true)
|
||||
document.removeEventListener("visibilitychange", handleVisibilityChange)
|
||||
clearInactivityTimer()
|
||||
|
||||
@@ -2682,6 +2682,11 @@ const TopTools = (
|
||||
<Text size="xs">恢复</Text>
|
||||
</ActionIcon>
|
||||
<ActionIcon
|
||||
display={
|
||||
process.env.NEXT_PUBLIC_ENV === "development"
|
||||
? "block"
|
||||
: "none"
|
||||
}
|
||||
variant="transparent"
|
||||
c="var(--mantine-color-text)"
|
||||
style={{ width: "auto", display: "flex", gap: 4 }}
|
||||
@@ -2719,6 +2724,11 @@ const TopTools = (
|
||||
<Text size="xs">恢复</Text>
|
||||
</Flex>
|
||||
<Flex
|
||||
display={
|
||||
process.env.NEXT_PUBLIC_ENV === "development"
|
||||
? "block"
|
||||
: "none"
|
||||
}
|
||||
justify="space-between"
|
||||
align="center"
|
||||
gap={4}
|
||||
|
||||
Reference in New Issue
Block a user