Skip to content

fix(web): keep thread text steady as the files panel closes - #1424

Merged
nixuuu merged 1 commit into
devfrom
fix/sidebar-close-layout-shift
Nov 28, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/sidebar-close-layout-shift

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 28, 2026

Copy link
Copy Markdown
Member

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.

Move the collapsed thread details clearance with the Files panel so the conversation keeps its width when both layouts have room.

Fixes: #1092
@nixuuu
nixuuu enabled auto-merge (squash) November 28, 2026 10:17
@nixuuu
nixuuu merged commit 5ad8ec5 into dev Nov 28, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/sidebar-close-layout-shift branch November 28, 2026 10:19
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