The active pane's edges: kept to the pane they are for; drawn by the pane with the curves off; tests count curves, not edges

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-17 00:48:37 -05:00
1 parent 9c0f4b8c02
commit e6e4ad8d26
5 files changed
+10 -8

No files matched your search

+3 -3
View File
@@ -832,7 +832,7 @@ export function Panes() {
}, []);
return (
<div class="panes" data-colors={store.settings.colors}>
<div class="panes" data-colors={store.settings.colors} data-curves={store.settings.curves ? undefined : "off"}>
<div class="strip" ref={strip}>
{order.map((c) => {
const items = cols.get(c)!;
@@ -1204,9 +1204,9 @@ function curves(el: HTMLElement | null, svg: SVGSVGElement | null) {
if (!p) {
p = document.createElementNS("http://www.w3.org/2000/svg", "path");
p.dataset.key = c.key;
p.dataset.from = String(c.from);
p.dataset.to = String(c.to);
}
if (p.dataset.from !== String(c.from)) p.dataset.from = String(c.from);
if (p.dataset.to !== String(c.to)) p.dataset.to = String(c.to);
if (p.getAttribute("d") !== c.d) p.setAttribute("d", c.d);
if (p.getAttribute("class") !== c.cls) p.setAttribute("class", c.cls);
if (p.dataset.lane !== String(c.lane)) p.dataset.lane = String(c.lane);
+2
View File
@@ -470,6 +470,8 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
/* The active pane: the heavy rule across its top; its other three edges in the stronger ink are drawn with the curves (Panes.tsx), over the hairlines it shares with its neighbours, so a move from pane to pane repaints only those lines. */
.pane.active::after { height: 3px; }
.panes .curves path.frame.frame { stroke: var(--edge-strong); fill: none; stroke-dasharray: none; }
/* With the curves off, the pane draws them itself. */
.panes[data-curves="off"] .pane.active::after { bottom: 0; height: auto; background: none; border: 1px solid var(--edge-strong); border-top: 3px solid var(--fg); }
.pane.on-branch:not(.active)::after { height: 1px; background: var(--faint); }
/* The curves: from what each pane was opened from to its title, behind nothing but in the gaps between lines. */