Skip to content

Commit 3d46dae

Browse files
authored
fix(ui): Remove extra background (#255)
Before <img width="726" height="230" alt="CleanShot 2026-03-01 at 01 30 46@2x" src="https://github.com/user-attachments/assets/904c409b-334f-4e3c-bdcb-53a94c713e13" /> After <img width="726" height="240" alt="CleanShot 2026-03-01 at 01 30 19@2x" src="https://github.com/user-attachments/assets/9f6a6b39-fdaa-4a34-baa0-6fc647bb74bf" />
1 parent 7f3bc74 commit 3d46dae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/list.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ func (r *InstanceRenderer) Render(i *session.Instance, idx int, selected bool, h
176176
remainingWidth := r.width
177177
remainingWidth -= runewidth.StringWidth(prefix)
178178
remainingWidth -= runewidth.StringWidth(branchIcon)
179+
remainingWidth -= 2 // for the literal " " and "-" in the branchLine format string
179180

180181
diffWidth := runewidth.StringWidth(addedDiff) + runewidth.StringWidth(removedDiff)
181182
if diffWidth > 0 {

0 commit comments

Comments
 (0)