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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user