Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

Merge origin/main into feat/focus-mode (styles.css: keep both appended sections)

enes6baf545d7f22
diff --cc src/renderer/styles.css
index 18705114b,693fb1f22..3f48975c8
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@@ -10620,71 -10629,107 +10629,177 @@@ body
white-space: nowrap;
}
- /* ================================= Focus mode (issue #78) ==================================
+ One terminal fills the window. The surface is a fixed opaque layer ABOVE the canvas (z 40 —
+ over the sidebar's 12 and the dock's 20, under menus at 46 and dialogs at 55/70), and the
+ focused `.term-node` is REPARENTED into it (TerminalNode's layout effect) — same element,
+ same xterm, no respawn. Chrome is not "hidden": it simply sits under the opaque surface, and
+ the dock is lifted above it (z 41) on pointer proximity / hover. */
+.focus-surface {
+ position: fixed;
+ inset: 0;
+ z-index: 40;
+ display: none;
+}
+.focus-surface.is-active {
+ display: block;
+ background: var(--canvas-bg);
+}
+/* The reparented node root: fill the surface edge to edge. width/height 100% still resolve
+ against the surface; the absolute inset pins it regardless of the flow-node sizing props. */
+.focus-surface .term-node {
+ position: absolute;
+ inset: 0;
+ width: auto;
+ height: auto;
+ border-radius: 0;
+}
+/* Canvas-only affordances are meaningless off-canvas: resize grips, link handles, flow ports. */
+.focus-surface .react-flow__resize-control,
+.focus-surface .bridge-handle,
+.focus-surface .react-flow__handle {
+ display: none;
+}
+.focus-exit {
+ position: absolute;
+ top: 10px;
+ right: 14px;
+ z-index: 2;
+ border: 1px solid var(--border);
+ background: rgba(var(--menu-rgb), 0.92);
+ color: var(--text);
+ border-radius: 999px;
+ font-size: 11px;
+ padding: 4px 12px;
+ cursor: pointer;
+ opacity: 0.4;
+ transition: opacity 0.16s ease-out;
+}
+.focus-exit:hover {
+ opacity: 1;
+}
+/* Dock reveal: proximity (Canvas toggles `focus-reveal-bottom` on mousemove) or direct hover
+ keeps it up once revealed. Lifted above the surface, faded via opacity only. */
+body.focus-mode .dock {
+ z-index: 41;
+ opacity: 0;
+ pointer-events: none;
+ transition: opacity 0.16s ease-out;
+}
+body.focus-mode.focus-reveal-bottom .dock,
+body.focus-mode .dock:hover {
+ opacity: 1;
+ pointer-events: auto;
+}
+@media (prefers-reduced-motion: reduce) {
+ .focus-exit,
+ body.focus-mode .dock {
+ transition: none;
+ }
+}
++=======
+ /* ================================ Polish pass (issue #78) ==================================
+ Enter animations for the shared overlay shells + quiet scrollbars. Rules of the pass:
+ transform/opacity ONLY (nothing that forces layout — terminals must keep streaming at 60fps),
+ one-shot on mount (no exit mechanism: every shell hard-unmounts via `{open && portal}`, and
+ keeping portals alive for an exit tween would thread a closing state through 15 dialogs — the
+ kanban modal set this precedent and it reads fine), and the existing token palette only. */
+
+ @keyframes nt-overlay-fade {
+ from {
+ opacity: 0;
+ }
+ to {
+ opacity: 1;
+ }
+ }
+ @keyframes nt-surface-pop {
+ from {
+ opacity: 0;
+ transform: scale(0.97) translateY(4px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+ }
+ @keyframes nt-menu-in {
+ from {
+ opacity: 0;
+ transform: translateY(-3px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+ }
+ @keyframes nt-drawer-in {
+ from {
+ opacity: 0;
+ transform: translateX(10px);
+ }
+ to {
+ opacity: 1;
+ transform: none;
+ }
+ }
+
+ /* Scrims fade fast — they must never make the surface feel late. */
+ .confirm-overlay,
+ .sc-overlay,
+ .palette-overlay,
+ .drawer-overlay {
+ animation: nt-overlay-fade 0.12s ease-out;
+ }
+ /* Dialog-family surfaces pop with the kanban modal's spring curve. */
+ .confirm,
+ .shortcuts,
+ .palette {
+ animation: nt-surface-pop 0.16s cubic-bezier(0.22, 1, 0.36, 1);
+ }
+ /* Menus are twitch surfaces — barely-there settle, never a bounce. */
+ .ctx-menu,
+ .tab-menu {
+ animation: nt-menu-in 0.12s ease-out;
+ }
+ /* Drawers slide in from their anchored edge (they open right-aligned). */
+ .drawer {
+ animation: nt-drawer-in 0.16s cubic-bezier(0.22, 1, 0.36, 1);
+ }
+ .tooltip {
+ animation: nt-overlay-fade 0.12s ease-out;
+ }
+
+ /* Same contract as the mascot pulse above: motion is decoration; everything must read without it. */
+ @media (prefers-reduced-motion: reduce) {
+ .confirm-overlay,
+ .sc-overlay,
+ .palette-overlay,
+ .drawer-overlay,
+ .confirm,
+ .shortcuts,
+ .palette,
+ .ctx-menu,
+ .tab-menu,
+ .drawer,
+ .tooltip {
+ animation: none;
+ }
+ }
+
+ /* --- Quiet scrollbars everywhere -----------------------------------------------------------
+ The standard properties, not ::-webkit-scrollbar: `scrollbar-color` INHERITS (set once on
+ :root), `scrollbar-width` does not (hence the `*`), and on macOS they keep the native
+ overlay behavior — thumbs appear on scroll instead of reserving a chunky gutter, which is
+ what made the default bars read as foreign controls in every panel. Setting a standard
+ property also makes Chromium ignore an element's ::-webkit-scrollbar rules, so the three
+ deliberately-HIDDEN scrollbars (tab strip, xterm viewports) keep working through the
+ `scrollbar-width: none` they already declare, and the banner/menu custom thumbs converge on
+ this same thin themed look instead of their hand-rolled webkit variants. */
+ :root {
+ scrollbar-color: rgba(var(--tint-rgb), 0.22) transparent;
+ }
+ * {
+ scrollbar-width: thin;
+ }
++
++/* ================================= Focus mode (issue #78) ===========================