Skip to content

Commit

Permalink
opnsense/bsdinstaller: fix ui weirdness on overlong selection
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jul 21, 2016
1 parent c9ccd05 commit 350b6e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opnsense/bsdinstaller/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= bsdinstaller
PORTVERSION= 16.7.r
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= sysutils
DISTFILES=

Expand Down
9 changes: 8 additions & 1 deletion opnsense/bsdinstaller/files/installer/lib/storage_ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,17 @@ StorageUI.select_disk = function(tab)
local filter = tab.filter or function() return true end

local add_disk_action = function(tdd)
local desc = tdd:get_desc()
local max = 60

if string.len(desc) > max then
desc = string.sub(desc, 1, max - 3) .. "..."
end

table.insert(disk_actions,
{
id = tdd:get_name(),
name = tdd:get_desc(),
name = desc,
effect = function()
return tdd
end
Expand Down

0 comments on commit 350b6e2

Please sign in to comment.