mirror of
https://github.com/tw93/Mole.git
synced 2026-02-11 05:24:19 +00:00
feat: Separate Home and Library entries in overview, exclude Library from Home's size, and sort overview entries by size.
This commit is contained in:
@@ -164,7 +164,9 @@ func (m model) View() string {
|
||||
}
|
||||
}
|
||||
totalSize := m.totalSize
|
||||
nameWidth := calculateNameWidth(m.width)
|
||||
// For overview mode, use a fixed small width since path names are short
|
||||
// (~/Downloads, ~/Library, etc. - max ~15 chars)
|
||||
nameWidth := 20
|
||||
for idx, entry := range m.entries {
|
||||
icon := "📁"
|
||||
sizeVal := entry.Size
|
||||
|
||||
Reference in New Issue
Block a user