From 03f597a496a9d9c11acacc54d5af18d792214749 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Fri, 20 Feb 2026 02:12:19 -0800 Subject: [PATCH] fix: open minimap settings panel above on mobile (#8589) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary On mobile viewports, the minimap settings panel now opens above the minimap instead of to the left, preventing it from extending off-screen on narrow viewports. image image ## Changes - Add mobile breakpoint detection using `useBreakpoints` from VueUse - Use `flex-col-reverse` on mobile to position panel above the minimap - Change margin from `mr-2` (right) to `mb-2` (bottom) on mobile ## Testing - On desktop (≥768px width): Panel opens to the left of minimap (unchanged) - On mobile (<768px width): Panel opens above the minimap ## Related - Fixes [Bug: Mobile minimap settings popover opens left instead of up](https://www.notion.so/comfy-org/Bug-Mobile-minimap-settings-popover-opens-left-instead-of-up-2fc6d73d365081549a57c9132526edca) ## Summary by CodeRabbit * **New Features** * Minimap now adapts layout between mobile and desktop for improved usability. * Panel spacing and alignment adjust automatically to better fit small screens, improving readability and control placement. * Responsive behavior provides a more consistent experience across device sizes, with smoother transitions between compact (mobile) and wide (desktop) layouts. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8589-fix-open-minimap-settings-panel-above-on-mobile-2fc6d73d365081ed8125c16051865c2b) by [Unito](https://www.unito.io) --- src/renderer/extensions/minimap/MiniMap.vue | 12 +++++++++++- src/renderer/extensions/minimap/MiniMapPanel.vue | 11 +++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/renderer/extensions/minimap/MiniMap.vue b/src/renderer/extensions/minimap/MiniMap.vue index 5df12291bf..090af13ca3 100644 --- a/src/renderer/extensions/minimap/MiniMap.vue +++ b/src/renderer/extensions/minimap/MiniMap.vue @@ -2,7 +2,12 @@
@@ -70,14 +76,18 @@