From 9b905883dfa08169ee532c7bb2a0f540264e8830 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 19 Nov 2025 15:34:02 +0100 Subject: [PATCH] Listview/Conditions * make column width flex --- setup/sql/updates/1763555620_01.sql | 1 + setup/tools/filegen/templates/global.js/listview.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 setup/sql/updates/1763555620_01.sql diff --git a/setup/sql/updates/1763555620_01.sql b/setup/sql/updates/1763555620_01.sql new file mode 100644 index 00000000..03adf418 --- /dev/null +++ b/setup/sql/updates/1763555620_01.sql @@ -0,0 +1 @@ +UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' globaljs'); diff --git a/setup/tools/filegen/templates/global.js/listview.js b/setup/tools/filegen/templates/global.js/listview.js index 25038cc9..7942ba64 100644 --- a/setup/tools/filegen/templates/global.js/listview.js +++ b/setup/tools/filegen/templates/global.js/listview.js @@ -2945,7 +2945,6 @@ Listview.extraCols = { id: 'condition', name: LANG.tab_conditions, type: 'text', - width: '25%', compute: function(row, td) { if (!row.condition) @@ -2954,6 +2953,7 @@ Listview.extraCols = { td.className = 'small'; td.style.lineHeight = '18px'; td.style.textAlign = 'left'; + td.style.whiteSpace = 'nowrap'; // tiny links are hard to hit, hmkey? td.onclick = (e) => $WH.sp(e);