adjust table column widths

This commit is contained in:
Lilian Jónsdóttir 2024-07-15 16:32:16 -07:00
parent 536fc9e925
commit f193d0f5b3

View file

@ -64,9 +64,9 @@ 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.4))
owidth int = int(math.Round(float64(width-woffset) * 0.2))
dwidth int = int(math.Round(float64(width-woffset) * 0.25))
fwidth int = int(math.Round(float64(width-woffset) * 0.45))
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))
theight int = min(height-hoffset, len(fs))