fix(web): allow horizontal scroll in raw json editor

This commit is contained in:
XYSK-lilong007 2026-03-12 02:33:13 +08:00
parent 4a8a2e9c23
commit 8805a5ca6d

View file

@ -149,7 +149,8 @@ export function RawJsonPanel() {
setEditorValue(e.target.value) setEditorValue(e.target.value)
setIsDirty(true) 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")} placeholder={t("pages.config.json_placeholder")}
/> />
</ScrollArea> </ScrollArea>