Skip to content

Commit 499aa13

Browse files
committed
Adjust smileycounter UI
1 parent 4b17cf2 commit 499aa13

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

presenter-app/src/common/ApiService.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ const ApiService = {
113113
this.closeEventStream();
114114
});
115115

116-
evtSource.onopen = function(e) {
116+
evtSource.onopen = (e) => {
117117
sseReconnectFrequencySeconds = 1;
118-
console.log("Eventstream opened");
118+
console.log("Eventstream opened", {e});
119119
};
120-
evtSource.onerror = function(e) {
121-
console.log("Eventstream error");
120+
evtSource.onerror = (e) => {
121+
console.log("Eventstream error", {e});
122122
evtSource.close();
123123
store.dispatch("updateSessionStreamState", false);
124124
setTimeout(tryToSetupFunc, waitFunc());

presenter-app/src/common/SessionStream.js

Whitespace-only changes.

presenter-app/src/components/SmileyCounter.vue

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="card-content">
44
<div class="level is-mobile">
55
<div class="level-left">
6-
<div class="level-item">
6+
<div class="smiley level-item">
77
<twemoji
88
:emojis="smiley"
99
css-class="twa twa-3x"
@@ -19,7 +19,7 @@
1919
v-if="trend !== 0"
2020
:icon="trend > 0 ? 'angle-up' : 'angle-down'"
2121
size="is-small"
22-
:class="trend > 0 ? 'has-text-success' : 'has-text-danger'"
22+
:class="trend > 0 ? 'trend has-text-success' : 'trend has-text-danger'"
2323
/>{{ currentRate }}<span class="subtitle-unit">/m</span>
2424
</p>
2525
</div>
@@ -138,4 +138,13 @@ export default {
138138
.card + .card {
139139
margin-top: 0.8rem;
140140
}
141+
142+
.trend {
143+
margin-left: -1.5rem;
144+
}
145+
146+
.smiley {
147+
margin-left: -1rem;
148+
padding-right: 1rem;
149+
}
141150
</style>

0 commit comments

Comments
 (0)