Skip to content

Commit

Permalink
Debug UI CSS improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
darthfiddler committed Mar 27, 2018
1 parent d069be4 commit 387d413
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions src/client/debug/debug.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
*/

.debug-ui {
text-align: left;
min-width: 300px;
max-width: 400px;
overflow: hidden;
overflow-y: scroll;
box-sizing: border-box;
background: #fefefe;
border: 3px solid #ddd;
border-left: 1px solid #ddd;
box-shadow: -1px 0 10px #aaa;
position: absolute;
right: 0;
top: 0;
Expand All @@ -21,7 +23,7 @@
font-family: monospace;
font-size: 14px;
padding: 20px;
box-sizing: content-box;
box-sizing: border-box;
}

.debug-ui section {
Expand Down
12 changes: 6 additions & 6 deletions src/client/debug/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,16 +423,16 @@ export class Debug extends React.Component {
<h3>state</h3>

<section>
<pre>
<strong>G</strong>:{' '}
{JSON.stringify(this.props.gamestate.G, null, 2)}
<pre className="json">
<strong>ctx</strong>:{' '}
{JSON.stringify(this.props.gamestate.ctx, null, 2)}
</pre>
</section>

<section>
<pre>
<strong>ctx</strong>:{' '}
{JSON.stringify(this.props.gamestate.ctx, null, 2)}
<pre className="json">
<strong>G</strong>:{' '}
{JSON.stringify(this.props.gamestate.G, null, 2)}
</pre>
</section>
</span>
Expand Down

0 comments on commit 387d413

Please sign in to comment.