Skip to content

Fix ask-question option row vertical alignment#11717

Open
coolcom200 wants to merge 2 commits into
masterfrom
oz-agent/ask-question-option-alignment
Open

Fix ask-question option row vertical alignment#11717
coolcom200 wants to merge 2 commits into
masterfrom
oz-agent/ask-question-option-alignment

Conversation

@coolcom200
Copy link
Copy Markdown
Contributor

@coolcom200 coolcom200 commented May 26, 2026

Description

Fix vertical alignment of the numbered badge relative to the answer text in ask-question tool option rows.

The shared numbered shortcut button row was using top/start cross-axis alignment, which made the badge sit off-center next to single-line answer text. This switches the row to center cross-axis alignment so the badge and label content line up vertically.

Before
Screenshot 2026-05-26 at 3 10 44 PM

After
image

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 thread: feedback-app 1779388093.780329

Testing

  • cargo check --manifest-path /workspace/warp/Cargo.toml -p warp --lib
  • cargo fmt --all
  • cargo clippy --workspace --all-targets --all-features --tests -- -D warnings
  • cargo test -p warp number_shortcut_buttons --lib
  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Computer-use visual verification was attempted twice, but the ask-question UI could not be reached in the sandboxed environment: the first attempt reached the agent request and was blocked by a staging 403 for AI features; the retry was blocked by the local app onboarding/browser-based sign-in flow before the ask-question tool could run.

Agent Mode

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

CHANGELOG-NONE

Conversation: https://staging.warp.dev/conversation/c8254208-0a95-4aeb-9ce9-78ba26c48fe5

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

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 26, 2026
@coolcom200 coolcom200 marked this pull request as ready for review May 26, 2026 23:11
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 26, 2026

@coolcom200

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR changes the shared numbered shortcut button row to center-align the numbered badge with the option content, addressing the ask-question option row vertical alignment issue. The provided before/after screenshots satisfy the visual-evidence requirement for this user-facing UI change.

Concerns

  • No blocking correctness, spec, or security concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Co-Authored-By: Oz <oz-agent@warp.dev>
@coolcom200
Copy link
Copy Markdown
Contributor Author

/oz-review

@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 28, 2026

@coolcom200

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adjusts the ask-question numbered option row spacing so the shortcut badge aligns with the option text. The change is limited to local layout math in the shared numbered button component, and the PR description includes before/after screenshots for the user-facing behavior.

Concerns

  • No blocking correctness, security, or spec-alignment concerns found.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@coolcom200 coolcom200 requested review from szgupta and vkodithala May 28, 2026 17:41
Copy link
Copy Markdown
Member

@szgupta szgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice eye, question about impl tho

/ 2.;

let row = Flex::row()
.with_cross_axis_alignment(CrossAxisAlignment::Start)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by this diff - shouldn't this be changed?

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.

2 participants