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 <meetwenjie@gmail.com>
This commit is contained in:
Alix-007
2026-03-12 14:51:52 +08:00
committed by GitHub
parent 7273c7fe35
commit b5bd434ddb
@@ -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")}
/>
</div>