Skip to content

Keep IBM Plex search text inside its control - #4

Merged
mcaney006 merged 1 commit into
mainfrom
fix/search-input-clipping
Aug 30, 2026
Merged

Keep IBM Plex search text inside its control#4
mcaney006 merged 1 commit into
mainfrom
fix/search-input-clipping

Conversation

@mcaney006

Copy link
Copy Markdown
Owner

Summary

  • shorten the IBM Plex Mono search placeholder to fit the field
  • clip custom text painting at the search control boundary

Verification

  • cargo fmt --all -- --check
  • cargo test --locked --workspace
  • cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
  • visual check against the installed app

Copilot AI lite review requested due to automatic review settings August 30, 2026 05:25
@mcaney006
mcaney006 merged commit a0a4f00 into main Aug 30, 2026
@mcaney006
mcaney006 deleted the fix/search-input-clipping branch August 30, 2026 05:25
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-30T05:27:46.132143Z 659c39a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are small, consistent with existing UI styling patterns (including prior overflow_hidden() usage), and align with the PR’s stated goal without introducing new risk.

Pull request overview

This PR updates the SearchInput UI to avoid text overflow issues by shortening the placeholder text and ensuring the search control clips any custom-painted text to its bounds.

Changes:

  • Shortened the search placeholder string to better fit the field.
  • Added .overflow_hidden() to the search input container so painted text is clipped at the control boundary.
File summaries
File Description
src/ui/text_input.rs Shortens search placeholder and clips search input rendering within its bounds via overflow_hidden().
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 659c39aa55

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ui/text_input.rs
.on_mouse_move(cx.listener(Self::mouse_move))
.h(px(28.))
.w_full()
.overflow_hidden()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the active end of long queries visible

When a query is wider than the 320 px toolbar field, this clips the shaped line, selection, and cursor, but SearchTextElement always paints from bounds.origin and has no horizontal offset or scroll state. Consequently, after typing or pasting a sufficiently long query, its tail and caret become invisible while edits continue there; retain the clipping but shift/scroll the rendered line so the active cursor remains within the field.

Useful? React with 👍 / 👎.

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.

2 participants