Skip to content

Commit 387d413

Browse files
committed
Debug UI CSS improvements
1 parent d069be4 commit 387d413

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/client/debug/debug.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
*/
88

99
.debug-ui {
10+
text-align: left;
1011
min-width: 300px;
1112
max-width: 400px;
12-
overflow: hidden;
13+
overflow-y: scroll;
1314
box-sizing: border-box;
1415
background: #fefefe;
15-
border: 3px solid #ddd;
16+
border-left: 1px solid #ddd;
17+
box-shadow: -1px 0 10px #aaa;
1618
position: absolute;
1719
right: 0;
1820
top: 0;
@@ -21,7 +23,7 @@
2123
font-family: monospace;
2224
font-size: 14px;
2325
padding: 20px;
24-
box-sizing: content-box;
26+
box-sizing: border-box;
2527
}
2628

2729
.debug-ui section {

src/client/debug/debug.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,16 +423,16 @@ export class Debug extends React.Component {
423423
<h3>state</h3>
424424

425425
<section>
426-
<pre>
427-
<strong>G</strong>:{' '}
428-
{JSON.stringify(this.props.gamestate.G, null, 2)}
426+
<pre className="json">
427+
<strong>ctx</strong>:{' '}
428+
{JSON.stringify(this.props.gamestate.ctx, null, 2)}
429429
</pre>
430430
</section>
431431

432432
<section>
433-
<pre>
434-
<strong>ctx</strong>:{' '}
435-
{JSON.stringify(this.props.gamestate.ctx, null, 2)}
433+
<pre className="json">
434+
<strong>G</strong>:{' '}
435+
{JSON.stringify(this.props.gamestate.G, null, 2)}
436436
</pre>
437437
</section>
438438
</span>

0 commit comments

Comments
 (0)