From fde61647bd1010d77ed4206e0b669a41113f0ba4 Mon Sep 17 00:00:00 2001 From: Xertis Date: Sun, 19 Jan 2025 12:59:26 +0300 Subject: [PATCH] minor update --- res/layouts/pages/content.xml.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/res/layouts/pages/content.xml.lua b/res/layouts/pages/content.xml.lua index 29b8ff68..5a8f9342 100644 --- a/res/layouts/pages/content.xml.lua +++ b/res/layouts/pages/content.xml.lua @@ -36,7 +36,7 @@ end function reposition_func(pack) local INTERVAL = 2 - local STEP = -1 + local STEP = 1 local SIZE = 80 local tbl = packs_excluded @@ -45,20 +45,20 @@ function reposition_func(pack) end local indx = table.index(tbl, pack) - 1 - local pos = {0, (SIZE + INTERVAL) * indx - STEP} + local pos = {0, (SIZE + INTERVAL) * indx + STEP} return pos end -function refresh_search() +function refresh_search() local search_text = document.search_textbox.text:lower() local new_included = table.copy(packs_included) local new_excluded = table.copy(packs_excluded) - local function score(package_name) - if package_name:lower():find(search_text) then + local function score(pack_name) + if pack_name:lower():find(search_text) then return 1 end return 0