Rackula
Rackula copied to clipboard
fix: verb bar and toasts can cover fixed canvas controls
Summary
Fixed canvas controls can be covered by the verb bar and first-run toasts.
Problem
computeVerbBarPosition follows the selected target and clamps only to the viewport, and the verb bar (z-index 50) sits above the canvas controls (z-index 21 at the time of writing). Panning can bring it over any corner control.
- At 1280px and 1440px wide with a rack selected, the zoom cluster and verb bar overlap at rest, with no panning.
- Panning can bring the verb bar over the help button added in #3606.
- At 1440x900 the first-run toast covers the zoom controls. At 1025px a toast overlaps the help button by about 13px.
Proposed Solution
Make verb bar positioning aware of the fixed canvas controls, or reserve exclusion areas for them, so every control stays reachable. Check toast placement against the same areas.
Acceptance Criteria
- [ ] The verb bar does not cover the zoom cluster or help button at rest
- [ ] Panning a selected target into a canvas corner leaves the corner control reachable
- [ ] Toasts do not cover the zoom controls or help button
Test Requirements
- [ ] Unit test:
computeVerbBarPositionavoids reserved areas