jesseduffield.lazygit/pkg/gui/presentation
Stefan Haller d9487bf31c Fix the expanded layout of the branches panel (half and full screen modes)
If the showDivergenceFromBaseBranch config is not none, the expanded branches
panel would no longer show the remote branch and subject; the reason was that we
padded the name all the way to the right edge of the view so that the divergence
information is right-aligned.

To fix this, we simply don't right-align the divergence in half or full screen
mode. This is a bit unfortunate, but it's hard to do any better, because we
don't know the width of our column in advance. One thing I tried is to make the
divergence a separate column in that case (with an explicit right-alignment set
on it via getColumnAlignments; however, this makes it harder to properly
truncate the name when the window is too narrow.
2026-03-23 17:25:41 +01:00
..
authors Replace go-runewidth with uniseg 2025-12-23 16:49:16 +01:00
graph Modernize all codes 2025-11-15 10:46:23 +01:00
icons Fix DEFAULT_REMOTE_ICON character code 2025-06-20 00:03:53 +02:00
branches.go Fix the expanded layout of the branches panel (half and full screen modes) 2026-03-23 17:25:41 +01:00
branches_test.go Show worktree name next to branch in branches list 2026-03-09 11:34:34 +01:00
commits.go Show -C for fixup todos in rebase if present 2026-01-28 10:15:48 +01:00
commits_test.go Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
files.go Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00
files_test.go Add user config gui.addRootItemInFileTree 2025-05-24 18:17:25 +02:00
item_operations.go Show inline waiting status when checking out a local branch 2024-03-17 07:53:38 +01:00
loader.go Move Loader to presentation package 2025-05-06 09:52:53 +02:00
reflog_commits.go Make Commit.Hash a getter for an unexported hash field 2025-04-29 14:57:15 +02:00
remote_branches.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
remotes.go Move Loader to presentation package 2025-05-06 09:52:53 +02:00
stash_entries.go feat: add age on stash lines 2023-12-27 11:21:49 +01:00
status.go Make WorkingTreeState a struct, and add cherry-picking and reverting states 2025-04-20 15:53:17 +02:00
submodules.go refactor: use strings.Builder and strings.Repeat to simplify code 2025-12-03 18:34:21 +01:00
suggestions.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
tags.go Move Loader to presentation package 2025-05-06 09:52:53 +02:00
worktrees.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00
worktrees_test.go Show branch name and detached HEAD in worktrees tab 2026-03-08 12:51:46 +01:00