Improve selected node highlighting by using minWidth instead of width
Brian Vaughn committed
Feb 28, 2019 at 12:56 UTC
c7f85572028bc09505a51b1283da2fc3a024de8b
2 files changed
+2
-1
src/devtools/views/Element.css
-1
@@ -1,6 +1,5 @@
1
.Element,
2
.SelectedElement {
3
- width: 100%;
3
border-radius: 0.25em;
4
position: relative;
5
white-space: nowrap;
src/devtools/views/Element.js
+2
@@ -89,6 +89,8 @@ export default function ElementView({ index, style }: Props) {
89
style={{
90
...style, // "style" comes from react-window
91
paddingLeft: `${(depth - baseDepth) * 0.75 + 0.25}rem`,
92
+ width: undefined,
93
+ minWidth: '100%',
94
}}
95
>
96
<span className={styles.Component} ref={ref}>