diff --git a/editor/src/components/inspector/flex-section.tsx b/editor/src/components/inspector/flex-section.tsx index 0e9fef71b0db..6bf0d4680eff 100644 --- a/editor/src/components/inspector/flex-section.tsx +++ b/editor/src/components/inspector/flex-section.tsx @@ -92,8 +92,6 @@ import { import type { Axis } from '../canvas/gap-utils' import { GridExpressionInput } from '../../uuiui/inputs/grid-expression-input' -const axisDropdownMenuButton = 'axisDropdownMenuButton' - function getLayoutSystem( layoutSystem: DetectedLayoutSystem | null | undefined, ): 'grid' | 'flex' | null { @@ -553,20 +551,20 @@ function AxisDimensionControl({ const gridExpressionInputFocused = useGridExpressionInputFocused() + const [isHovered, setIsHovered] = React.useState(false) + const onMouseEnter = React.useCallback(() => { + setIsHovered(true) + }, []) + const onMouseLeave = React.useCallback(() => { + setIsHovered(false) + }, []) + return (