Skip to content

Commit

Permalink
fix #1558: url not wrapping on Chrome in mode view, font-size incre…
Browse files Browse the repository at this point in the history
…asing

  on mobile Webview
  • Loading branch information
josdejong committed Nov 8, 2023
1 parent b28832a commit 7b67e7b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
https://github.com/josdejong/jsoneditor


## not yet published, version 9.10.4

- Fix #1558: url not wrapping on Chrome in mode `view`, font-size increasing
on mobile Webview.


## 2023-09-21, version 9.10.3

- Fix #1550: trimming zero in front of a number (#1549). Thanks @DarkFisk.
Expand Down
4 changes: 3 additions & 1 deletion src/scss/jsoneditor/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}
div.jsoneditor-field,
div.jsoneditor-value,
a.jsoneditor-value,
div.jsoneditor-readonly,
div.jsoneditor-default {
border: 1px solid transparent;
Expand All @@ -21,6 +22,8 @@ div.jsoneditor-default {
padding: 2px;
margin: 1px;
word-wrap: break-word;
word-break: break-word;
overflow-wrap: break-word;
float: left;
}
div.jsoneditor-field p,
Expand All @@ -29,7 +32,6 @@ div.jsoneditor-value p {
}
div {
&.jsoneditor-value {
word-break: break-word;
&.jsoneditor-empty {
&::after {
content: "value";
Expand Down
3 changes: 3 additions & 0 deletions src/scss/jsoneditor/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.jsoneditor,
.jsoneditor-modal {
-webkit-text-size-adjust: none;
text-size-adjust: none;

input,
input:not([type]),
input[type="text"],
Expand Down
11 changes: 10 additions & 1 deletion test/test_build.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,16 @@
{
"<button onclick=alert('oopsie!!!')>test xss</button>": "xss?"
}
]
],
"wrap": {
"a" : "123456789012345678901234567890123456789001234567890",
"b" :
{
"c" : "123456789012345678901234567890123456789012345678",
"d" : "1234567890123456789012345678901234567890123456789012345",
"url": "https://github.com/josdejong/jsoneditor/issues/1558"
}
}
};

editorTest = new JSONEditor(container, options, json);
Expand Down

0 comments on commit 7b67e7b

Please sign in to comment.