storybookjs / react-inspector

🔍 Power of Browser DevTools inspectors right inside your React app

Home Page:https://5d8cb665bc622e0020296079-dippbxxgcq.chromatic.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ObjectPreview should be used in place of ObjectLabel

jcready opened this issue · 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.