From 8805a5ca6d1a8dfb61c8c83512d9392c4918dd36 Mon Sep 17 00:00:00 2001 From: XYSK-lilong007 <267018309+XYSK-lilong007@users.noreply.github.com> Date: Thu, 12 Mar 2026 02:33:13 +0800 Subject: [PATCH] fix(web): allow horizontal scroll in raw json editor --- web/frontend/src/components/config/raw-json-panel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/frontend/src/components/config/raw-json-panel.tsx b/web/frontend/src/components/config/raw-json-panel.tsx index f67bd89f50..2b5297095f 100644 --- a/web/frontend/src/components/config/raw-json-panel.tsx +++ b/web/frontend/src/components/config/raw-json-panel.tsx @@ -149,7 +149,8 @@ export function RawJsonPanel() { setEditorValue(e.target.value) setIsDirty(true) }} - className="min-h-[200px] resize-none border-0 bg-transparent px-4 py-3 font-mono text-sm shadow-none focus-visible:ring-0" + wrap="off" + className="min-h-[200px] resize-none overflow-x-auto border-0 bg-transparent px-4 py-3 font-mono text-sm whitespace-pre shadow-none [overflow-wrap:normal] focus-visible:ring-0" placeholder={t("pages.config.json_placeholder")} />