From 416679e95792872b8f1e994aee4ea708ce4a1293 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Tue, 7 Feb 2023 21:44:21 +0100 Subject: added icons to modlist --- src/app/css/grid.css | 4 ++++ src/app/js/browser.js | 4 +++- src/app/js/mods.js | 27 ++++++++++++++++++++------- 3 files changed, 27 insertions(+), 8 deletions(-) (limited to 'src/app') diff --git a/src/app/css/grid.css b/src/app/css/grid.css index c4c7c74..2533fea 100644 --- a/src/app/css/grid.css +++ b/src/app/css/grid.css @@ -132,6 +132,10 @@ padding: var(--padding) 0px; } +.grid .el.has-icon .text { + width: calc(100% - var(--height)); +} + .grid .el .title, .grid .el .description { height: 1.2em; overflow: hidden; diff --git a/src/app/js/browser.js b/src/app/js/browser.js index 4f8b68a..c35d31a 100644 --- a/src/app/js/browser.js +++ b/src/app/js/browser.js @@ -150,7 +150,9 @@ var Browser = { mod_versions[normalized] = { install: install, has_update: has_update, - local_version: local_version + local_version: local_version, + + package: packages[i] } } } diff --git a/src/app/js/mods.js b/src/app/js/mods.js index fd900a2..19c5bda 100644 --- a/src/app/js/mods.js +++ b/src/app/js/mods.js @@ -6,7 +6,6 @@ mods.load = (mods_obj) => { let normalized_names = []; let set_mod = (mod) => { - let image_url = ""; let normalized_name = "mod-list-" + normalize(mod.Name); normalized_names.push(normalized_name); @@ -28,8 +27,8 @@ mods.load = (mods_obj) => { div.innerHTML += `
- - + +
${mod.Name}
@@ -42,7 +41,7 @@ mods.load = (mods_obj) => { ${lang("gui.mods.remove")} - +