From 5769cc3a6e60145d72f8445f79630a814ea1f2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Mon, 15 Jul 2024 17:10:57 -0700 Subject: [PATCH] adjust column sizes again --- internal/tables/tables.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/tables/tables.go b/internal/tables/tables.go index e75525e..2f8f96c 100644 --- a/internal/tables/tables.go +++ b/internal/tables/tables.go @@ -64,11 +64,12 @@ type model struct { func newModel(fs []files.File, width, height int, readonly, preselected, once bool, workdir string, mode modes.Mode) model { var ( - fwidth int = int(math.Round(float64(width-woffset) * 0.45)) + // TODO: figure this out dynamically based on longest of each + fwidth int = int(math.Round(float64(width-woffset) * 0.46)) owidth int = int(math.Round(float64(width-woffset) * 0.25)) dwidth int = int(math.Round(float64(width-woffset) * 0.15)) swidth int = int(math.Round(float64(width-woffset) * 0.12)) - cwidth int = int(math.Round(float64(width-woffset) * 0.03)) + cwidth int = int(math.Round(float64(width-woffset) * 0.02)) theight int = min(height-hoffset, len(fs)) m = model{