uiwjs / react-json-view

A React component for displaying and editing javascript arrays and JSON objects.
https://uiwjs.github.io/react-json-view/
MIT License
212 stars 12 forks source link

Long text is not wrapping #51

Closed bigfoot31 closed 5 months ago

bigfoot31 commented 5 months ago
{
  "error": "call error: remote or network error[remote]: error_code=16** cluster THRIFT_EGRESSis forbidden by acl, authentication error: , tag: , reason: , authorization error: AUTHORIZATION_DENY, rip: /explorer.api.executor.mesh/rpc.egress.sock, hypervisor:"
}
<JsonView
      style={{ padding: '8px', height: '100%', overflowY: 'auto', maxWidth: '400px' }}
      displayObjectSize={false}
      displayDataTypes={false}
      enableClipboard={true}
      shortenTextAfterLength={0}
      value={value}
  />
jaywcjlove commented 5 months ago

Edit react-json-view

image

@bigfoot31 I haven't reproduced the error you described.

bigfoot31 commented 5 months ago

the problem was text-wrap was propagated down the DOM tree

text-wrap: nowrap