Skip to content

Commit 01e9814

Browse files
committed
added origin to GameEvents
1 parent 3551b0d commit 01e9814

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

src/components/GameEvents.vue

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<tr v-for="(gameEvent, index) in gameEvents"
66
:key="index"
77
:style="{'font-size': rowHeight}">
8+
<td class="autoRefIndicator" v-html="autoRefIndicator(gameEvent)"></td>
89
<td v-html="formatGameEvent(gameEvent)"></td>
910
</tr>
1011
</tbody>
@@ -34,6 +35,15 @@
3435
methods: {
3536
formatGameEvent(gameEvent) {
3637
return mapGameEventToText(gameEvent);
38+
},
39+
40+
autoRefIndicator(gameEvent) {
41+
if(gameEvent.origin == "")
42+
{
43+
return "GameController";
44+
} else {
45+
return gameEvent.origin;
46+
}
3747
}
3848
}
3949
}
@@ -43,13 +53,13 @@
4353
4454
.game-events {
4555
text-align: left;
46-
font-size: 5.0vh;
56+
font-size: 4.5vh;
4757
}
4858
4959
.table-striped {
5060
width: 100%;
51-
padding-left: 0.2em;
52-
padding-right: 0.2em;
61+
padding-left: 0.1em;
62+
padding-right: 0.1em;
5363
}
5464
5565
.table-striped tbody tr:nth-of-type(odd) {
@@ -60,4 +70,14 @@
6070
background-color: #444
6171
}
6272
73+
.table-striped td {
74+
vertical-align: baseline;
75+
padding: 2px;
76+
padding-left: 10px;
77+
}
78+
79+
.autoRefIndicator {
80+
font-size: 3vh;
81+
}
82+
6383
</style>

0 commit comments

Comments
 (0)