From 5d2d911d1aa2beb3e7987fd394dae80587f8d94c Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 28 May 2023 15:34:27 +0800 Subject: [PATCH] Add db_path to settings page --- components/SettingsText.tsx | 4 +++- islands/Settings.tsx | 7 +++++++ static/common.css | 14 +++++++++----- translation/en/settings.jsonc | 4 +++- translation/zh-cn/settings.jsonc | 4 +++- 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/components/SettingsText.tsx b/components/SettingsText.tsx index a7fce76..362ed99 100644 --- a/components/SettingsText.tsx +++ b/components/SettingsText.tsx @@ -97,8 +97,10 @@ export default class SettingsText render() { this.ref = useRef(); const id = `s-${this.props.name}`; + let cn = "text"; + if (this.props.helpertext) cn += " helper"; return ( -
+
{ type="number" min={1} /> +