Skip to content

Commit 188f9b0

Browse files
authored
Release/1.27.1 (#10)
* test: add a custom button test (#8) * style: prevent module overflow by breaking long words in string value (#9) * chore: update project version
1 parent 91365c0 commit 188f9b0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.27.1](https://github.com/n1c0de/react-json-view/compare/v1.27.0...v1.27.1) (2025-05-27)
6+
57
## [1.27.0](https://github.com/n1c0de/react-json-view/compare/v1.26.3...v1.27.0) (2025-05-26)
68

79

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@n1c0de/react-json-view",
33
"description": "Interactive react component for displaying javascript arrays and JSON objects.",
44
"homepage": "https://github.com/microlinkhq/react-json-view",
5-
"version": "1.27.0",
5+
"version": "1.27.1",
66
"main": "dist/main.js",
77
"author": "Mac Gainor",
88
"contributors": [

src/js/components/DataTypes/String.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ export default class extends React.PureComponent {
4444
const { collapseStringsAfterLength, theme, escapeStrings } = props
4545
let { value } = props
4646
const collapsible = toType(collapseStringsAfterLength) === 'integer'
47-
const style = { style: { cursor: 'default' } }
47+
const style = { style: { cursor: 'default', 'word-break': 'break-all' } }
4848

4949
if (escapeStrings) {
5050
value = escapeString(value)
5151
}
52-
52+
5353
if (collapsible && value.length > collapseStringsAfterLength) {
5454
style.style.cursor = 'pointer'
5555
if (collapsed) {

0 commit comments

Comments
 (0)