forked from molecule-ai/molecule-core
Two small fixes for the workspace right-click menu: 1. Off-screen clamp. Right-clicking near the right or bottom edge of the canvas put part of the menu past the viewport — items hidden under the scrollbar / off the screen. The menu now measures itself on the same rAF that auto-focuses the first item, and shifts back inside with an 8px margin (matching the floating-tooltip top-edge clamp in Tooltip.tsx). Falls back to the raw cursor coords for the first paint frame so there's no flash. 2. focus:ring-zinc-600 → focus-visible:ring-accent/50. The hardcoded zinc tone broke the semantic-token pattern every other surface uses; flipping to focus-visible also stops the ring from showing when items are clicked with the mouse (only keyboard nav now triggers the ring, matching Toolbar/SidePanel behavior). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| e2e | ||
| public | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| components.json | ||
| Dockerfile | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| playwright.staging.config.ts | ||
| postcss.config.js | ||
| tsconfig.json | ||
| vitest.config.ts | ||