mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
The next commits let the user resize the side panels by dragging the boundary between them and the main view, and remember the size in state.yml. This commit turns the remembered sizes into a layout. A ratio that works well on a laptop screen wastes a lot of space on a large monitor, so the size is remembered separately for each screen size at which the user set it. At other screen sizes, the size is interpolated between the two neighboring ones, or keeps the ratio of the nearest one beyond the smallest and the largest. With only one remembered size, this is the same as a fixed ratio. The size is also remembered separately for each layout, because e.g. half screen mode and portrait mode need very different sizes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>