Skip to content

Commit 6026196

Browse files
committed
fix: clear ghost text on empty tabs and fix emoji spacing in snapshot editor
- Pad "No items" line to full terminal width to prevent leftover characters from previous tab content bleeding through - Add trailing space to ⚙️ icon to fix missing gap before "macOS Prefs"
1 parent 7c9ed44 commit 6026196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ui/snapshot_editor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func NewSnapshotEditor(snap *snapshot.Snapshot) SnapshotEditorModel {
115115
itemType: editorItemMacOSPref,
116116
}
117117
}
118-
tabs[4] = editorTab{name: "macOS Prefs", icon: "⚙️", items: prefItems, itemType: editorItemMacOSPref}
118+
tabs[4] = editorTab{name: "macOS Prefs", icon: "⚙️ ", items: prefItems, itemType: editorItemMacOSPref}
119119

120120
return SnapshotEditorModel{
121121
tabs: tabs,
@@ -477,7 +477,7 @@ func (m SnapshotEditorModel) View() string {
477477
visibleItems := m.getVisibleItems()
478478

479479
if len(tab.items) == 0 {
480-
lines = append(lines, descStyle.Render(" No items"))
480+
lines = append(lines, padLine(descStyle.Render(" No items"), m.width))
481481
} else {
482482
scrollOffset := m.scrollOffset
483483
if scrollOffset > len(tab.items)-visibleItems {

0 commit comments

Comments
 (0)