Skip to content

Commit 5648cad

Browse files
committed
feat(sdk): adding an error panel to the demo view
1 parent 3d0b5dc commit 5648cad

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

runner/src/main/resources/view/test.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,18 @@ button {
129129
font-weight: normal;
130130
word-break: break-word;
131131
}
132-
132+
.outputs-demo {
133+
height: calc(100% - 20px);
134+
padding: 10px 15px;
135+
background-color: #29323c;
136+
border: solid 1px #363e48;
137+
overflow: auto;
138+
white-space: pre-wrap;
139+
font-size: 13px;
140+
font-weight: normal;
141+
word-break: break-word;
142+
color: white;
143+
}
133144
.players-outputs-player-console-title, .game-outputs-title, .game-outputs-down-referee-title, .players-outputs-player-header-title {
134145
font-size: 13px;
135146
font-weight: 600;

runner/src/main/resources/view/test.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
shareable="false"
5454
show-replay-prompt="false"
5555
game-params="gameParams">
56-
</cg-player>
56+
</cg-player>
57+
<div id="console" class="outputs-demo" ng-bind="errors" ng-if="errors"></div>
5758
<div class="close-button-wrapper">
5859
<button class="close-button" ng-click="closeViewReplayPopup()">Close</button>
5960
</div>

0 commit comments

Comments
 (0)