Skip to content

Commit ab258ad

Browse files
committed
enable word wrap in the json editor
This avoids hiding the save/cancel buttons when the editor contains urls and there isn't enough space to display them on a single line
1 parent 79664f4 commit ab258ad

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
55

66
## [Unreleased]
77

8+
### Fixed
9+
10+
- Enable word wrapping in the JSON editor.
11+
812
## [1.1.0] - 2025-11-30
913

1014
### Added

src/devtools/utils/json-editor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export function createJSONEditor(
1414
const editor = basicEditor(container, {
1515
value: initialValue,
1616
language: "json",
17+
wordWrap: true,
1718
theme: systemScheme === "light" ? "night-owl-light" : "night-owl",
1819
});
1920
editor.container.addEventListener("keydown", (event) => {

0 commit comments

Comments
 (0)