style(minimap): rework header/canvas layout and sizing#12876
Conversation
Split the settings/close controls into a header bar above a clipped, rounded canvas. Size the card (254x200) to align with the canvas controls bar; canvas resolution (252) matches the inner width so the viewport cone tracks content 1:1 and reaches the edge. Round the header/canvas divider so the cone nests flush, and match the filters panel gap to the minimap-to-controls spacing. Clamp the cone to the canvas bounds so it never collapses or drifts off-screen at extreme zoom/pan.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe minimap is refactored with a flex-column container layout replacing the absolute-positioned button overlay, internal viewport dimensions changed from 250×200 to 252×165, container width incremented by 1px, GPU compositing hints removed from ChangesMinimap Layout, Dimension, and Viewport Clamping Refinements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 6 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎭 Playwright: ⏳ Running... |

Summary
Rework the minimap into a header bar above a rounded, clipped canvas, and fix the viewport cone alignment, the card width, and the panel spacing so the minimap + controls cluster reads as one consistent unit.
Changes
<hr>divider).mr-2→mr-1) so both gaps in the cluster are 4px.Review Focus
containerRefmoved from the old all-in-one container to the inner canvas container so click/scroll mapping (clientX - rect.left) stays aligned with the canvas now that the header is a separate bar.Screenshots & Video
Before
Kooha-2026-06-17-00-21-02.mp4
After
Kooha-2026-06-17-00-23-07.mp4