From 28ef6c97f5c2e95209ca0644e7ea66c9729208ed Mon Sep 17 00:00:00 2001 From: Fringg Date: Sun, 29 Mar 2026 03:03:26 +0300 Subject: [PATCH] fix: three bugs found in second review round - SettingsSearchMobile: change sm:hidden to lg:hidden to match mobile layout breakpoint (search was invisible on 640-1023px tablets) - SettingsTableRow: sync isLongValue suffixes with SettingInput (_list, _json, _periods, _discounts were missing) - SettingsTableRow: read-only bools now show enabled/disabled labels instead of raw "true"/"false" strings --- src/components/admin/SettingsSearch.tsx | 2 +- src/components/admin/SettingsTableRow.tsx | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/admin/SettingsSearch.tsx b/src/components/admin/SettingsSearch.tsx index 033d744..42fa5e8 100644 --- a/src/components/admin/SettingsSearch.tsx +++ b/src/components/admin/SettingsSearch.tsx @@ -208,7 +208,7 @@ export function SettingsSearchMobile({ }; return ( -
+
{setting.read_only ? ( - {String(setting.current ?? '-')} + {isBool + ? boolChecked + ? t('admin.settings.enabled') + : t('admin.settings.disabled') + : String(setting.current ?? '-')} ) : isBool ? (