Update CursorTooltip offset for improved positioning
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- Increased the tooltip offset from 10 to 15 pixels to enhance visibility and prevent overlap with UI elements, improving user experience during interactions.
This commit is contained in:
Tom Butcher 2026-08-20 20:18:58 +01:00
parent 5ed086cf8b
commit 88d6ef6f13

View File

@ -3,7 +3,7 @@ import { createPortal } from 'react-dom'
import { Card } from 'antd' import { Card } from 'antd'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
const OFFSET = 10 const OFFSET = 15
const getTooltipRoot = () => { const getTooltipRoot = () => {
let root = document.getElementById('cursor-tooltip-root') let root = document.getElementById('cursor-tooltip-root')