Skip to content

Commit 8d2c7a7

Browse files
authored
ReactInspector: Fix layout update issue if backend try to reconnect (#507)
NOTE: This just fixed the inspector UI update issue, but not for the console errors. (it's upstream issue)
1 parent ec1b547 commit 8d2c7a7

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

app/containers/ReactInspector.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ const styles = {
2121
display: 'flex',
2222
height: '100%',
2323
justifyContent: 'center',
24+
position: 'relative',
25+
},
26+
waiting: {
27+
height: '100%',
28+
display: 'flex',
29+
webkitUserSelect: 'none',
30+
textAlign: 'center',
31+
color: '#aaa',
32+
justifyContent: 'center',
33+
alignItems: 'center',
34+
position: 'absolute',
35+
top: 0,
36+
left: 0,
37+
right: 0,
38+
bottom: 0,
2439
},
2540
};
2641

@@ -137,7 +152,7 @@ export default class ReactInspector extends Component {
137152
render() {
138153
return (
139154
<div id={containerId} style={styles.container}>
140-
<div id="waiting">
155+
<div id="waiting" style={styles.waiting}>
141156
<h2>{'Waiting for React to connect…'}</h2>
142157
</div>
143158
</div>

dist/css/style.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ body {
2020
left: 0;
2121
white-space: pre;
2222
}
23-
#waiting {
24-
-webkit-user-select: none;
25-
text-align: center;
26-
padding: 30px;
27-
color: #aaa;
28-
align-self: center;
29-
}
3023
#loading {
3124
color: #aaa;
3225
font-size: 30px;

0 commit comments

Comments
 (0)