adjust table column widths
This commit is contained in:
parent
536fc9e925
commit
f193d0f5b3
|
@ -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 {
|
func newModel(fs []files.File, width, height int, readonly, preselected, once bool, workdir string, mode modes.Mode) model {
|
||||||
var (
|
var (
|
||||||
fwidth int = int(math.Round(float64(width-woffset) * 0.4))
|
fwidth int = int(math.Round(float64(width-woffset) * 0.45))
|
||||||
owidth int = int(math.Round(float64(width-woffset) * 0.2))
|
owidth int = int(math.Round(float64(width-woffset) * 0.25))
|
||||||
dwidth 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))
|
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.03))
|
||||||
theight int = min(height-hoffset, len(fs))
|
theight int = min(height-hoffset, len(fs))
|
||||||
|
|
Loading…
Reference in a new issue