mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-10-05 10:18:25 +02:00
add extra space when icons are not rendered
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
@@ -75,6 +75,9 @@ func (m *Model) renderSidebar() string {
|
||||
label += string(entry.id)
|
||||
}
|
||||
line := lineStyle.Render(badgeStyle.Render(strconv.Itoa(i+1)) + textStyle.Render(label))
|
||||
if m.sidebarState == sidebarCollapsed && icon == "" {
|
||||
line = " " + line
|
||||
}
|
||||
items.WriteString(line + "\n")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user