adjust column sizes again

This commit is contained in:
Lilian Jónsdóttir 2024-07-15 17:10:57 -07:00
parent 30b605a230
commit 5769cc3a6e

View file

@ -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{