File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ type readDirMsg struct {
6464
6565const (
6666 marginBottom = 5
67- fileSizeWidth = 8
67+ fileSizeWidth = 7
6868 paddingLeft = 2
6969)
7070
@@ -377,7 +377,7 @@ func (m Model) View() string {
377377 var symlinkPath string
378378 info , _ := f .Info ()
379379 isSymlink := info .Mode ()& os .ModeSymlink != 0
380- size := humanize .Bytes (uint64 (info .Size ()))
380+ size := strings . Replace ( humanize .Bytes (uint64 (info .Size ())), " " , "" , 1 )
381381 name := f .Name ()
382382
383383 if isSymlink {
@@ -392,7 +392,7 @@ func (m Model) View() string {
392392 selected += " " + info .Mode ().String ()
393393 }
394394 if m .ShowSize {
395- selected += " " + fmt .Sprintf ("%" + strconv .Itoa (m .Styles .FileSize .GetWidth ())+ "s" , size )
395+ selected += fmt .Sprintf ("%" + strconv .Itoa (m .Styles .FileSize .GetWidth ())+ "s" , size )
396396 }
397397 selected += " " + name
398398 if isSymlink {
@@ -425,7 +425,7 @@ func (m Model) View() string {
425425 s .WriteString (" " + m .Styles .Permission .Render (info .Mode ().String ()))
426426 }
427427 if m .ShowSize {
428- s .WriteString (" " + m .Styles .FileSize .Render (size ))
428+ s .WriteString (m .Styles .FileSize .Render (size ))
429429 }
430430 s .WriteString (" " + fileName )
431431 s .WriteRune ('\n' )
You can’t perform that action at this time.
0 commit comments