react-inspector icon indicating copy to clipboard operation
react-inspector copied to clipboard

ObjectPreview should be used in place of ObjectLabel

Open jcready opened this issue 5 years ago • 0 comments

Collapsed nested objects/arrays in Chrome's devtools show the preview of the value not just Object or Array, upon expansion the preview goes away for objects, but not for arrays.

react-inspector

The preview also prevents line-wrapping using the following CSS:

TreeNode {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

I would love to be able to customize these things to suit my needs, but none of these things are configurable do to the way things are encapsulated. So for now this is simply a bug.

jcready avatar Oct 15 '19 19:10 jcready