Skip to content

Wrap canvas tab bar and make Start-session button icon-only#117

Merged
0101 merged 2 commits into
mainfrom
canvas-top-panel
Jul 15, 2026
Merged

Wrap canvas tab bar and make Start-session button icon-only#117
0101 merged 2 commits into
mainfrom
canvas-top-panel

Conversation

@0101

@0101 0101 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Problem

The canvas top-panel tab bar scrolled horizontally when many tabs were open, hiding tabs off-screen. The Start-session button also used a text label (▶ Start session), which was inconsistent with the icon-only Share and Archive buttons in the same bar.

Changes

  • Wrapping tab bar (src/Client/index.html): .canvas-tab-group now uses flex-wrap: wrap instead of overflow-x: auto, so tabs flow onto multiple rows and grow the bar's height rather than scrolling. .canvas-tab-bar aligns items to flex-start to accommodate the taller, multi-row layout.
  • Icon-only Start-session button (src/Client/CanvasPane.fs): replaced the ▶ Start session text with a new playIcon (a filled play-triangle SVG) styled like shareIcon (btn-icon, currentColor), with a tooltip preserved via prop.title. Added .canvas-launch-btn .btn-icon sizing (14×14) in index.html.

Tests

  • Updated src/Tests/CanvasPhase4Tests.fs to match the icon-only button.

Canvas top-panel tabs now wrap onto multiple rows and grow the bar's height instead of scrolling horizontally. The Start-session button is now an icon-only play button with a tooltip, matching the Share/Archive buttons.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: dfa4e8a9-3fe0-497d-9e07-2e654043d2cb
Copilot AI review requested due to automatic review settings July 15, 2026 14:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the canvas header to wrap tabs and use a consistent icon-only Start-session action.

Changes:

  • Wraps canvas tabs onto multiple rows.
  • Adds a play SVG to the Start-session button.
  • Updates the related Playwright assertion.
Show a summary per file
File Description
src/Client/index.html Updates tab wrapping and launch-button styling.
src/Client/CanvasPane.fs Adds and renders the play icon.
src/Tests/CanvasPhase4Tests.fs Updates the Start-session button test.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Medium

Comment thread src/Client/index.html
display: flex;
gap: 2px;
overflow-x: auto;
flex-wrap: wrap;
Comment thread src/Client/index.html
display: flex;
gap: 2px;
overflow-x: auto;
flex-wrap: wrap;
Comment on lines +183 to +184
let! title = launchBtn.GetAttributeAsync("title")
Assert.That(title, Does.Contain("Start a session"), "Button tooltip should describe starting a session")
@0101 0101 enabled auto-merge (squash) July 15, 2026 14:50
@0101 0101 merged commit c63e76c into main Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants