Skip to content

fix(editor): wrap long Lucene queries instead of overflowing the query row - #220

Open
ericmason wants to merge 1 commit into
quickwit-oss:mainfrom
equisolve:fix/query-editor-wrap-main
Open

ericmason wants to merge 1 commit into
quickwit-oss:mainfrom
equisolve:fix/query-editor-wrap-main

Conversation

@ericmason

Copy link
Copy Markdown

Long Lucene queries in the query editor don't wrap. The editor keeps them on one line and, because the queryItem flex child has the default min-width: auto, it grows to the full width of the query. In Grafana Explore the query row then runs past the right edge of the pane and the page scrolls sideways.

This change:

  • Adds EditorView.lineWrapping to the CodeMirror extensions in LuceneQueryEditor, so long queries wrap onto more lines.
  • Sets min-width: 0 on queryItem, so the editor stays inside the query row.

Tested on Grafana 13.3.1 with a query of about 110 characters in a 1279 px window: before, the editor was 1,118 px wide in a 759 px pane; after, it wraps to two lines and fits the pane. The log context query editor uses the same component and wraps too.

🤖 Generated with Claude Code (Claude Opus 5.5)

…y row

Add EditorView.lineWrapping to the Lucene query editor and min-width: 0
to the query item, so a long query wraps inside the query row instead
of widening it past the pane and scrolling the page sideways.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T18:28:36.404476Z 8ad8116 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.

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