mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 01:32:33 +02:00
add extra space when icons are not rendered
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
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