diff --git a/ui/dev/harness.html b/ui/dev/harness.html index 20b288e..faef17c 100644 --- a/ui/dev/harness.html +++ b/ui/dev/harness.html @@ -231,7 +231,7 @@
-
tabs — menu[role=tablist]
+
reference — menu[role=tablist]
@@ -240,5 +240,50 @@
Tab body
+ +

5 — Workspace tab strip (ours, as tab-bar.ts renders it)

+ +
+
+
ours — 3 workspaces, 2nd active
+
+ + + + + + +
+ +
+
+
+
+
ours — single workspace (the live startup state)
+
+ + + + +
+ +
+
+
+
diff --git a/ui/src/app/tab-bar/tab-bar.ts b/ui/src/app/tab-bar/tab-bar.ts index 6b87bd2..7a060e4 100644 --- a/ui/src/app/tab-bar/tab-bar.ts +++ b/ui/src/app/tab-bar/tab-bar.ts @@ -45,55 +45,51 @@ const CONCURRENCY_CHOICES = [2, 3, 4, 6, 8] as const;
-
+ @for (ws of panels.workspaces(); track ws.id; let i = $index) { -
+ - @if (panels.workspaces().length > 1) { - - } @else { - - } - @if (ws.id === panels.activeWorkspaceId()) { -
- } -
+ + {{ panels.workspaceName(ws) }} + } -
+