Skip to content

fix(threads): attach the composer tray without a drafts gap - #779

Merged
nixuuu merged 1 commit into
devfrom
fix/composer-section-spacing
Nov 15, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/composer-section-spacing

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

The composer tray (queue, subagents, goal) is meant to slide 16 px under the composer's top edge. Since #704 the composer always reserves an empty 32 px strip above its box for the Drafts tab. With a tray above, that strip sat between the two, so the tray ended 16 px above the composer with square bottom corners and an empty band inside.

Fixes: #704

Changes

  • With a tray, the empty Drafts reserve folds to 0, so the tray attaches to the composer again. A tray already sits above, so arriving drafts move the tray, not the composer (the reserve still holds the composer in place when there's no tray).
  • With a tray and the Drafts tab both showing, the tray stands on its own above the tab, fully rounded with a 4 px gap, instead of covering the tab's top half.
  • Composer.svelte owns this geometry with :has() rules on data-composer-tray, data-drafts-slot and data-drafts-tab, so no prop is threaded through MessageComposer and ComposerBox.

Verification

  • Bench stack (scripts/bench/client-stack.ts) in Chromium, dark and light, at 1280 and 390 px, with a running turn and queued messages:
    • tray only: the tray's bottom is 16 px below the composer's top edge (overlap restored), with no gap;
    • tray + Drafts tab (draft from a second browser context): the tray ends 4 px above the tab and the composer doesn't move (top 702/630 px before and after queueing).
  • bun install, gen:check, typecheck, lint, format:check and the web build pass locally. CI (all 4 test shards) passes.
  • Local check:tmp: 3166 pass, 2 fail, nothing left in the temp dir. One failure is Codex keeps full history when resuming across device login and proxy connections, which fails the same way on origin/dev with the locally installed Codex CLI (unrelated to this CSS-only change).
  • No UI tests added.

Copy audit (§8)

No visible text changed.

🤖 Generated with Claude Code

The composer always reserved an empty 32 px Drafts strip above its box.
With the queue, subagents or goal tray above, that strip sat between the
tray and the composer, so the tray no longer slid under the composer's
top edge and left a gap with square corners.

With a tray, the empty reserve folds. Arriving drafts then move the tray,
not the composer. When the Drafts tab shows, the tray stands on its own
above it, fully rounded, instead of overlapping the tab.

Fixes: #704

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nixuuu
nixuuu merged commit eab5fce into dev Nov 15, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/composer-section-spacing branch November 15, 2026 01:59
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.

1 participant