Files
codex/codex-rs/tui
Eric Traut 7a1325c191 Preserve the TUI logo's aspect ratio across terminal cell sizes (#63445)
## Why

Mapping the logo to a fixed character grid can stretch it when terminal
cells have different pixel proportions.

## What changed

Use the terminal's pixel and grid dimensions to scale the logo uniformly
and keep it centered in the space reserved for it. Use the original grid
mapping when usable pixel dimensions are unavailable.

Refresh the cached dimensions after resize or resume in onboarding,
startup draft input, and the main TUI, even if the grid size is unchanged.

## Testing

Update the settled onboarding logo snapshot to cover a HiDPI terminal
with 11 × 25.5 logical pixels per cell.

GitOrigin-RevId: 3a8a504e00ba80ba0acc421a8b48f64c73e465aa
2026-11-23 21:41:05 +00:00
..