mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-14 09:36:24 -04:00
The width of a popup panel was a ratio of the window's width, capped at the panel's maximum. The ratio never did anything for confirmations and prompts, whose minimum and maximum widths are both 80; they always came out at 80, or at the window width if that was narrower. For menus and the commit message editor it meant that the window had to be 158 columns wide before either of them reached its maximum width, and that below 140 columns they were 80 columns wide. This is narrower than the window has room for, and too narrow for the three columns of the recent repos menu. Give every panel the width it asks for as long as it fits, and shrink it only when the window leaves no choice. A panel keeps a margin of three columns on either side while it can afford to, so that it doesn't sit flush against the sides of the window as soon as the window gets a little narrow. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| cheatsheet | ||
| commands | ||
| common | ||
| config | ||
| constants | ||
| env | ||
| fakes | ||
| gocui | ||
| gui | ||
| i18n | ||
| integration | ||
| jsonschema | ||
| logs | ||
| snake | ||
| tasks | ||
| theme | ||
| updates | ||
| utils | ||