From 5ed4b60b8f9ef6cb324287bdc7e244960e0431ae Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Wed, 18 Jun 2025 02:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(EditChannel):=20replace=20?= =?UTF-8?q?fixed-height=20TextArea=20with=20autosize=20to=20eliminate=20un?= =?UTF-8?q?wanted=20scrollbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The “Batch Create” secret-key input in Channel Edit previously used a TextArea with a hard-coded `minHeight`, which caused an extra scrollbar and blank space on the right side of the field. This change: • Removes the fixed `minHeight` in favour of `autosize={{ minRows: 6, maxRows: 6 }}` • Keeps the field’s rounded appearance while letting it grow/shrink with content, improving usability on both desktop and mobile No other components or global styles are affected. --- web/src/pages/Channel/EditChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/Channel/EditChannel.js b/web/src/pages/Channel/EditChannel.js index 8bfe5812..b1cbef49 100644 --- a/web/src/pages/Channel/EditChannel.js +++ b/web/src/pages/Channel/EditChannel.js @@ -530,7 +530,7 @@ const EditChannel = (props) => { handleInputChange('key', value); }} value={inputs.key} - style={{ minHeight: 150, fontFamily: 'JetBrains Mono, Consolas' }} + autosize={{ minRows: 6, maxRows: 6 }} autoComplete='new-password' className="!rounded-lg" />