From 9646eef487255a43b6b73aede3bd0cf17f16fa29 Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Fri, 3 Jul 2026 01:08:05 -0400 Subject: [PATCH] Mobile: hide the desktop menu bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gate the top menu bar on !mobile_active(). Its commands are all reachable from the mobile shell (⌕ command palette, ⋯ overflow, and the stage/timeline context menus), so the desktop menu bar is redundant on mobile and just wastes a strip of vertical space. Desktop unchanged. --- lightningbeam-ui/lightningbeam-editor/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lightningbeam-ui/lightningbeam-editor/src/main.rs b/lightningbeam-ui/lightningbeam-editor/src/main.rs index 10d5a6a..38acae8 100644 --- a/lightningbeam-ui/lightningbeam-editor/src/main.rs +++ b/lightningbeam-ui/lightningbeam-editor/src/main.rs @@ -6577,7 +6577,9 @@ impl eframe::App for EditorApp { } } - // Top menu bar (egui-rendered on all platforms) + // Top menu bar (egui-rendered on desktop). On mobile the shell's ⌕ palette + ⋯ overflow + // expose every command, so the desktop menu bar is suppressed. + if !self.mobile_active() { egui::TopBottomPanel::top("menu_bar").show(ctx, |ui| { if let Some(menu_system) = &self.menu_system { let recent_files = self.config.get_recent_files(); @@ -6613,6 +6615,7 @@ impl eframe::App for EditorApp { } } }); + } // Render start screen or editor based on app mode if self.app_mode == AppMode::StartScreen {