1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-23 03:37:40 +00:00

better colors - resizing

This commit is contained in:
kepler155c@gmail.com
2017-09-30 20:35:36 -04:00
parent 5681b01810
commit c0baa00668
8 changed files with 84 additions and 89 deletions

View File

@@ -1,16 +1,15 @@
local Util = require('util')
local UI = require('ui')
local UI = require('ui')
local Util = require('util')
return function(args)
local columns = {
{ heading = 'Name', key = 'name', width = UI.term.width - 9 },
{ heading = 'Name', key = 'name' },
}
if UI.term.width > 28 then
columns[1].width = UI.term.width - 16
table.insert(columns,
{ heading = 'Size', key = 'size', width = 6 }
{ heading = 'Size', key = 'size', width = 5 }
)
end