Skip to content

Commit

Permalink
core/plugins/wasm_treeview: make treeview smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed May 9, 2024
1 parent e770eca commit e921096
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/plugins/wasm_treeview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ end
local ContextMenu = require "core.contextmenu"
local treeview = require "plugins.treeview"

-- if treeview size is larger than 40% of the screen, hide the thing by default
local w = system.get_window_size()
treeview:set_target_size("x", math.min(config.plugins.treeview.size, w / 100 * 40))

-- remove the open in system entry
for _, items in ipairs(treeview.contextmenu.itemset) do
local context_items = items.items
Expand Down

0 comments on commit e921096

Please sign in to comment.