a9cf21a3a097 — Dang Hoang Tuan (Tsuki) 2 years ago
Setting default column width can hurt users with different screen size, so I remove it
2 files changed, 0 insertions(+), 2 deletions(-)

M consts.go
M helper_functions.go
M consts.go +0 -1
@@ 9,7 9,6 @@ import (
 
 const OK int = http.StatusOK
 const NOT_FOUND int = http.StatusNotFound
-const COL_WIDTH int = 100
 const ACCESSIBLE_DIR string = "/home/firefly/" // Accessible directory
 const HELP = `
 HELP

          
M helper_functions.go +0 -1
@@ 20,7 20,6 @@ func displayFolder(c echo.Context, path 
 	tableString := &strings.Builder{}
 	table := tablewriter.NewWriter(tableString)
 	table.SetHeader([]string{"TYPE", "NAME", "SIZE"})
-	table.SetColMinWidth(1, COL_WIDTH)
 	for _, file := range files {
 		if file.IsDir() {
 			table.Append([]string{"DIR", file.Name(), ByteCountSI(file.Size())})