feat(maestro): tighten mobile session UX
ci / rust (push) Failing after 1m42s

On phones (single tab, one pane at a time):
- drop the pane border/padding/focus-ring so the session fills the screen
- collapse the redundant tab bar; float a ☰ to keep the sidebar drawer reachable
- disable pull-to-refresh (overscroll-behavior) so terminal scroll wins

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-24 15:53:26 +00:00
co-authored by Claude Opus 4.8
parent 57d417f7a0
commit 9286eb09ba
2 changed files with 56 additions and 2 deletions
+15
View File
@@ -344,6 +344,9 @@ export function createMultiView(opts: MultiViewOptions): MultiView {
renderTabs();
canvas.replaceChildren();
const tab = activeTab(layout);
// Mobile single-tab: the tab bar carries no information (one tab, one pane),
// so CSS collapses it and we float a ☰ instead (rendered in renderMobile).
el.classList.toggle("mv-mobile-solo", isMobile && layout.tabs.length === 1);
if (!tab.root) {
pool.setVisible([]);
@@ -380,6 +383,18 @@ export function createMultiView(opts: MultiViewOptions): MultiView {
const wrap = document.createElement("div");
wrap.className = "mv-mobile";
// With a single tab the tab bar (and its ☰) is hidden — float a ☰ so the
// sidebar drawer stays reachable.
if (layout.tabs.length === 1) {
const fab = document.createElement("button");
fab.type = "button";
fab.className = "mv-mobile-fab";
fab.title = "Sessions";
fab.textContent = "☰";
fab.addEventListener("click", () => opts.onToggleSidebar?.());
wrap.appendChild(fab);
}
if (ls.length > 1) {
const bar = document.createElement("div");
bar.className = "mv-panebar";