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.

feat(ui): give the canvas controls the dock's plate, and one separator

Bas Milius636047ff5abe
diff --git a/src/renderer/nodes/GroupNode.tsx b/src/renderer/nodes/GroupNode.tsx
index e8fd183fd..29e5178b1 100644
--- a/src/renderer/nodes/GroupNode.tsx
+++ b/src/renderer/nodes/GroupNode.tsx
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState } from 'react'
-import { IconClose } from '../components/icons'
+import { IconClose, IconUngroup } from '../components/icons'
import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'
import { NODE_MIN_SIZES } from '../lib/nodeSizing'
import { NODE_COLORS, ungroupNodes, type CanvasNode } from '../state/workspace'
@@ -300,12 +300,18 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {
</div>
<div className="group-node__actions nodrag">
- <button className="group-node__ungroup" title="Ungroup" onClick={ungroup}>
- ungroup
+ <button
+ className="group-node__ungroup"
+ title="Ungroup"
+ aria-label="Ungroup"
+ onClick={ungroup}
+ >
+ <IconUngroup />
</button>
<button
className="group-node__close"
title="Remove group (keeps nodes)"
+ aria-label="Remove group"
onClick={ungroup}
>
<IconClose />
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index c15a38e9e..52b307e73 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -70,6 +70,11 @@
--float-gap: 22px;
--tabbar-h: 44px;
+ /* Outer width of the bottom-left controls column: one button plus the column's 1px border on
+ each side. The pill cluster clears the column by reading this, so resizing the buttons cannot
+ silently drop the pills back on top of them. */
+ --controls-w: 30px;
+
/* Canvas chrome that lives on React Flow props rather than in a rule. */
--canvas-dot: #303030;
--minimap-mask: rgba(10, 12, 18, 0.6);
@@ -5978,9 +5983,10 @@ button.group-node__setup:disabled {
padding: 0;
}
-.group-node__close {
- padding: 3px 8px;
- line-height: 1;
+.group-node__ungroup svg,
+.group-node__close svg {
+ width: 14px;
+ height: 14px;
}
.group-node__ungroup:hover,
@@ -6295,9 +6301,14 @@ button.group-node__setup:disabled {
/* ---- Canvas controls (bottom-left) ----
Same plate and --float-gap offset as the other floating chrome; the library's own glyphs are
- replaced in Canvas.tsx, so these rules only size and color our 16px icons. */
+ replaced in Canvas.tsx, so these rules only size and color our 16px icons.
+ The plate, the blur and the border sit on the COLUMN, matching .dock: with a background on each
+ button instead, the four read as four stacked chips and the border around them had nothing to
+ enclose. */
.react-flow__controls {
margin: var(--float-gap) !important;
+ background: rgba(var(--menu-rgb), 0.92);
+ backdrop-filter: blur(10px);
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
@@ -6310,20 +6321,23 @@ button.group-node__setup:disabled {
}
.react-flow__controls-button {
- width: 28px;
- height: 28px;
+ width: calc(var(--controls-w) - 2px);
+ height: calc(var(--controls-w) - 2px);
padding: 0;
display: flex;
align-items: center;
justify-content: center;
- background: rgba(var(--menu-rgb), 0.85);
+ background: transparent;
border: none;
- border-bottom: 1px solid var(--border);
color: var(--text);
}
-.react-flow__controls .tooltip-trigger:last-child .react-flow__controls-button {
- border-bottom: none;
+/* ONE separator, where there used to be a rule under every button. Zoom in, zoom out and fit view
+ are all camera moves; the lock is a mode toggle, and it is the only one that changes what the
+ other three are allowed to do. The lock already carries its own class, so this needs no
+ nth-child over the Tooltip spans that wrap each button. */
+.react-flow__controls-button.canvas-lock-btn {
+ border-top: 1px solid var(--border);
}
.react-flow__controls-button svg {
@@ -6419,10 +6433,12 @@ button.group-node__setup:disabled {
Deliberately carries NO z-index: an absolutely positioned box with `z-index: auto` establishes no
stacking context, so each pill's own z-index (5 / 13 / 26 / 60) keeps competing with the sessions
sidebar and the kanban overlay exactly as it did when each was anchored on its own. Do not add
- z-index, transform, filter or opacity here — any of them would trap both pills below the sidebar. */
+ z-index, transform, filter or opacity here — any of them would trap both pills below the sidebar.
+ The left offset clears the controls column, which shares this corner: --controls-w plus the 12px
+ the other chrome already uses between two adjacent clusters (see .resume-card). */
.canvas-pills {
position: absolute;
- left: var(--float-gap);
+ left: calc(var(--float-gap) + var(--controls-w) + 12px);
bottom: var(--float-gap);
display: flex;
align-items: center;