bvaughn / react-devtools-experimental

Experimental rewrite of the React DevTools extension
https://react-devtools-experimental.now.sh
MIT License
965 stars 55 forks source link

Truncation of key prop in GUI #361

Closed noah79 closed 5 years ago

noah79 commented 5 years ago

Currently the key prop is truncated to 15 or so letters. I've been unable to locate where in the devtools code this happens. There is a truncateText in utils but it does not appear to be called by anyone.

image

bvaughn commented 5 years ago

This truncation is intentional to keep nodes from being too wide (which impacts horizontal indentation).

You can hover over the key value to see the full string (as a tooltip) or double-click select it if you want to copy paste the un-truncated value though.