Raise results column max width and double-click divider to fit #4

Merged
claude-bot merged 1 commit from feat/results-column-fit into main 2026-11-19 09:24:53 +00:00
Collaborator

Changes

  • Wider columns: you can now drag a results column up to MAX_COL_WIDTH = 4000px (was 800px), so long arrays, JSON and struct values fit. New results still start at the default width (at most 340px).
  • Double-click to fit: double-clicking a header divider calls fit_column_width. It sizes the column to its header (with room for the sort arrow) and its widest value across all rows. It uses character count to find the widest value, then lays out only that one value with the grid's fonts to get its exact width.
  • Resize handle fix: each column's sort click target overlapped the right half of the divider to its left, which grabbed resize clicks. Sort targets now stop 4px short of each divider.
  • The divider shows a tooltip: "Drag to resize, double-click to fit".
  • Added a column-widths section to AGENTS.md.

Testing

  • cargo test passes (17 tests), including 2 new headless egui tests: fitting a 60-element array, and the 4000px cap.
  • Not yet checked by hand in the Windows GUI.

🤖 Generated with Claude Code

## Changes - **Wider columns:** you can now drag a results column up to `MAX_COL_WIDTH` = 4000px (was 800px), so long arrays, JSON and struct values fit. New results still start at the default width (at most 340px). - **Double-click to fit:** double-clicking a header divider calls `fit_column_width`. It sizes the column to its header (with room for the sort arrow) and its widest value across all rows. It uses character count to find the widest value, then lays out only that one value with the grid's fonts to get its exact width. - **Resize handle fix:** each column's sort click target overlapped the right half of the divider to its left, which grabbed resize clicks. Sort targets now stop 4px short of each divider. - The divider shows a tooltip: "Drag to resize, double-click to fit". - Added a column-widths section to `AGENTS.md`. ## Testing - `cargo test` passes (17 tests), including 2 new headless egui tests: fitting a 60-element array, and the 4000px cap. - Not yet checked by hand in the Windows GUI. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Dragging a results column was capped at 800px, too narrow for long
arrays, JSON or struct values. Raise the cap to 4000px. Double-clicking
a header divider now sizes the column to its header and widest value
across all rows. Header sort click targets stop 4px short of each
divider so the next column no longer steals half of the resize handle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude-bot deleted branch feat/results-column-fit 2026-11-19 09:24:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
daniel/qry-duck!4
No description provided.