2
0
Fork 0

feat: render windows as bordered cards #27

Merged
aleksei merged 4 commits from feat/window-cards into main 2026-11-03 23:06:36 +00:00
Owner

Summary

Redesigns the session list so every window is its own bordered, rounded card.

  • A session is now a section header: bold name, small window count and the horizontal-ellipsis action trigger. The session itself has no enclosing card.
  • Each window below the header is a borderWidth="1px", rounded="lg" card on the bg surface. Hovering the card brightens its border to border.emphasized.
  • Window actions expand inside the card; session actions expand under the session header.
  • Empty sessions show a dashed "No windows" card.
  • The number next to a session is its window count; there are no window numbers or bullets.

This keeps the session as the group label and makes each window the tappable object, with separate visual boundaries rather than a continuous list.

Verification

  • npm run build
  • npm run typecheck
  • dprint check
  • git diff --check

The portal was not rebuilt or restarted.

## Summary Redesigns the session list so every window is its own bordered, rounded card. - A session is now a section header: bold name, small window count and the horizontal-ellipsis action trigger. The session itself has no enclosing card. - Each window below the header is a `borderWidth="1px"`, `rounded="lg"` card on the `bg` surface. Hovering the card brightens its border to `border.emphasized`. - Window actions expand inside the card; session actions expand under the session header. - Empty sessions show a dashed "No windows" card. - The number next to a session is its window count; there are no window numbers or bullets. This keeps the session as the group label and makes each window the tappable object, with separate visual boundaries rather than a continuous list. ## Verification - `npm run build` - `npm run typecheck` - `dprint check` - `git diff --check` The portal was not rebuilt or restarted.
Author
Owner

8d8b5b5 tunes the action-panel spacing:

  • Session actions: the header drops its bottom padding while open, so New window starts with the same 8px gap as the session-name-to-window-border spacing. New window, Rename session and Kill session now have no left padding (pl=0), while keeping the right padding.
  • Window actions: the panel adds pt=1/pb=1 around py=2 buttons, giving 12px before Rename window and 12px after Kill window — the same 12px the window name has above its card border.
  • The session panel keeps pt=0; the window panel keeps its inset.
`8d8b5b5` tunes the action-panel spacing: - Session actions: the header drops its bottom padding while open, so New window starts with the same 8px gap as the session-name-to-window-border spacing. New window, Rename session and Kill session now have **no left padding** (`pl=0`), while keeping the right padding. - Window actions: the panel adds `pt=1`/`pb=1` around `py=2` buttons, giving 12px before Rename window and 12px after Kill window — the same 12px the window name has above its card border. - The session panel keeps `pt=0`; the window panel keeps its inset.
Author
Owner

0ab2790 adjusts the session-level spacing:

  • Session header now has a 12px bottom gap (pb=3) both with and without an open action panel, matching the window card’s top border-to-name inset.
  • Session action panel uses pt=1 + py=2 buttons, so there are 12px from the border to New window.
  • Session action panel uses pb=4, so there are 24px from Kill session to the next window card — twice the top gap.
  • Session action buttons use pl=1 (4px), aligning with the session name’s left inset.
`0ab2790` adjusts the session-level spacing: - Session header now has a 12px bottom gap (`pb=3`) both with and without an open action panel, matching the window card’s top border-to-name inset. - Session action panel uses `pt=1` + `py=2` buttons, so there are 12px from the border to New window. - Session action panel uses `pb=4`, so there are 24px from Kill session to the next window card — twice the top gap. - Session action buttons use `pl=1` (4px), aligning with the session name’s left inset.
aleksei deleted branch feat/window-cards 2026-11-03 23:06:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/mux-portal!27
No description provided.