From b5bd434ddba599c678ed9a8d08efba15e396949f Mon Sep 17 00:00:00 2001 From: Alix-007 Date: Thu, 12 Mar 2026 14:51:52 +0800 Subject: [PATCH] fix(web): allow horizontal scroll in raw json editor (#1386) Co-authored-by: XYSK-lilong007 <267018309+XYSK-lilong007@users.noreply.github.com> Co-authored-by: wenjie --- 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 5f195f744..b8a059506 100644 --- a/web/frontend/src/components/config/raw-json-panel.tsx +++ b/web/frontend/src/components/config/raw-json-panel.tsx @@ -147,7 +147,8 @@ export function RawJsonPanel() { setEditorValue(e.target.value) setIsDirty(true) }} - className="h-[calc(100vh-20rem)] min-h-[200px] w-full resize-none overflow-auto 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")} />