Skip to content

fix(web): keep thread gradient steady when details collapse - #1092

Merged
nixuuu merged 1 commit into
devfrom
fix/stabilize-gradient-shadow
Nov 21, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/stabilize-gradient-shadow

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026

Copy link
Copy Markdown
Member

Changes

  • Keep the transcript's top edge and scroll fade anchored below the header throughout a docked Thread details toggle.
  • Give the collapsed pill and mini Preview room beside the transcript on wide screens. Keep their row above the transcript on narrow screens.
  • Reserve the full mini Preview width as soon as it docks, including when closing Files.

Verification

  • Reproduced the 40 px shift in Chromium before the fix. Verified that the fade stays at the same height throughout collapse and expansion at 1280 px.
  • Checked the popover at 800 px and the sheet at 390 px. Checked a long branch label and verified that mini Preview clears the full-width transcript from the first frame when closing Files.
  • Web typecheck, formatting and lint on the changed files, and diff whitespace checks passed locally. The full verification gate runs in CI.

Fixes: #1027

@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 20:07
@nixuuu
nixuuu merged commit cfe02ab into dev Nov 21, 2026
16 checks passed
@nixuuu
nixuuu deleted the fix/stabilize-gradient-shadow branch November 21, 2026 20:16
nixuuu added a commit that referenced this pull request Nov 28, 2026
Closing Files with Thread details collapsed immediately reserved space
for the branch pill while the panel still occupied its full width. In
Chromium, a 734 px conversation briefly shrank to 473 px before settling
at 768 px, causing the messages to wrap twice.

The pill now reserves space at the same rate that Files releases it. It
stays in the row above the conversation until the horizontal space
beside the messages is available.

Fixes: #1092

## Verification

- Sampled the conversation and composer on each animation frame in
Chromium. At a 1536 px window width, both stayed 768 px wide with their
left edge at 384 px throughout opening, closing, and reversing the Files
transition.
- Checked the narrower 1460 px layout at comfortable and full thread
widths, reduced motion, and opening and dismissing the Files sheet at
390 px.
- Formatted the edited web files, linted the changed Svelte files, and
ran `git diff --check`. Repository-wide checks run in CI.
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