jesseduffield.lazygit/pkg
Stefan Haller d0fa50d4ef Give popup panels their full width whenever the window has room for it
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>
2026-09-14 09:23:26 +02:00
..
app Handle daemon mode before creating the app config 2026-09-13 07:39:02 +02:00
cheatsheet Construct logger separately and pass it into NewCommon 2026-09-13 07:39:02 +02:00
commands Avoid rehydrating unchanged rebase todos 2026-08-29 17:25:59 +02:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config Validate the context names in the "context" field of custom commands 2026-09-03 21:07:32 +02:00
constants Adapt links 2026-07-31 08:42:51 +02:00
env Remember how to get back to a repo we entered a submodule from 2026-08-08 11:15:01 +02:00
fakes Modernize all codes 2025-11-15 10:46:23 +01:00
gocui Show the search status of what a re-rendered view now holds 2026-09-05 15:09:52 +02:00
gui Give popup panels their full width whenever the window has room for it 2026-09-14 09:23:26 +02:00
i18n Update translations from Crowdin 2026-09-05 16:46:18 +02:00
integration Find the lazygit root directory by go.mod instead of .git 2026-09-09 09:27:44 +02:00
jsonschema Find the lazygit root directory by go.mod instead of .git 2026-09-09 09:27:44 +02:00
logs Separate the runs in the debug log with a blank line 2026-08-15 09:48:11 +02:00
snake Remove a few unnecessary parentheses 2026-08-13 20:40:11 +02:00
tasks Hold a task while a view is read to its end 2026-09-05 15:09:52 +02:00
theme Copy gocui files into lazygit repo under pkg/gocui 2026-04-30 14:29:08 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Find the lazygit root directory by go.mod instead of .git 2026-09-09 09:27:44 +02:00