Skip to content

Fix diff footer overflow on narrow panes#11237

Draft
moirahuang wants to merge 1 commit into
masterfrom
oz-agent/fix-diff-footer-overflow
Draft

Fix diff footer overflow on narrow panes#11237
moirahuang wants to merge 1 commit into
masterfrom
oz-agent/fix-diff-footer-overflow

Conversation

@moirahuang
Copy link
Copy Markdown
Contributor

Description

Fixes the diff footer layout at narrow pane widths by switching the hunk navigation controls to compact icon-only Previous/Next buttons below a width threshold. This keeps the existing labeled controls at normal widths while preventing the "Next" text from overflowing in narrow panes.

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Slack report: diff footer "Next" text overflows on narrow pane widths.

Testing

  • rustfmt --edition 2021 /workspace/warp/app/src/code/editor/nav_bar.rs

  • cargo check --manifest-path /workspace/warp/Cargo.toml -p warp --lib (passes with existing unrelated unused-variable warnings)

  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Not attached; this sandbox does not support running the full GUI locally.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-BUG-FIX: Fixed diff footer navigation text overflowing in narrow panes.

Co-Authored-By: Oz oz-agent@warp.dev

Conversation: https://staging.warp.dev/conversation/a995ab5c-cee6-485d-b953-9a16e57a3f79
Run: https://oz.staging.warp.dev/runs/019e3d16-c5a3-7ab0-9aa8-b6606a78855a
This PR was generated with Oz.

Use a compact icon-only variant for diff hunk navigation controls when the footer is rendered in narrow panes so the Next label cannot overflow.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant