mirror of
https://github.com/kepler155c/opus
synced 2025-10-23 03:37:40 +00:00
better colors - resizing
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user