mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Improve selected node highlighting by using minWidth instead of width
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
.Element,
|
||||
.SelectedElement {
|
||||
width: 100%;
|
||||
border-radius: 0.25em;
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
|
||||
@@ -89,6 +89,8 @@ export default function ElementView({ index, style }: Props) {
|
||||
style={{
|
||||
...style, // "style" comes from react-window
|
||||
paddingLeft: `${(depth - baseDepth) * 0.75 + 0.25}rem`,
|
||||
width: undefined,
|
||||
minWidth: '100%',
|
||||
}}
|
||||
>
|
||||
<span className={styles.Component} ref={ref}>
|
||||
|
||||
Reference in New Issue
Block a user