Skip to content

Commit 38bca3b

Browse files
committed
disable cache to build
1 parent 0650954 commit 38bca3b

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

packages/web/components/game/GameMap.vue

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<l-marker
4545
:lat-lng="getMidpointLatLng([vote.lng, vote.lat])"
4646
v-if="!vote.isCorrect && humanizeDistance(vote, room.country, true) > 200"
47-
:icon="createDistanceIcon(humanizeDistance(vote, room.country, true), vote.color)"
47+
:icon="createDistanceIcon([vote.lng, vote.lat], humanizeDistance(vote, room.country, true), vote.color, vote.player)"
4848
></l-marker>
4949
</template>
5050
</template>
@@ -67,7 +67,7 @@
6767
<l-marker
6868
v-if="humanizeDistance({lat: marker.position[1], lng: marker.position[0]}, room.country, true) > 200"
6969
:lat-lng="getMidpointLatLng(marker.position)"
70-
:icon="createDistanceIcon(marker.position, humanizeDistance({lat: marker.position[1], lng: marker.position[0]}, room.country, true), pinColor)"
70+
:icon="createDistanceIcon(marker.position, humanizeDistance({lat: marker.position[1], lng: marker.position[0]}, room.country, true, room.player), pinColor)"
7171
></l-marker>
7272
</template>
7373

@@ -118,7 +118,8 @@ import distanceBetween from "~/utils/functions/distanceBetween";
118118
export default class GameMap extends Vue {
119119
@Prop() room: Room
120120
121-
pinSet = false
121+
pinSet = false;
122+
showNames = false;
122123
123124
get countryIcon() {
124125
const iconUrl = imageUrl(isoToCountryCode(this.room.country.alpha2code).toUpperCase(), "l");
@@ -176,7 +177,15 @@ export default class GameMap extends Vue {
176177
return [midLng, midLat];
177178
}
178179
179-
createDistanceIcon(coords, distance, color) {
180+
createDistanceIcon(coords, distance, color, player) {
181+
if (player) {
182+
return divIcon({
183+
className: 'distance-label',
184+
html: `<div style="
185+
white-space: nowrap;
186+
display: inline-block !important;background-color: ${color}; width: unset !important; !important; font-size: 13px; padding: 2px 2px !important; font-weight: bold; border-radius: 3px; color: black;">${player.username}: ${distance} km</div>`,
187+
});
188+
}
180189
return divIcon({
181190
className: 'distance-label',
182191
html: `<div style="

packages/web/components/score-board-overlay.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
}`"
88
v-for="player in sortedPlayers"
99
>
10-
<h4 class="md:min-w-[50px]" style="text-align: left;">{{ room.scoreboard[player.sessionId].points || 0 }}</h4>
10+
<h4 class="min-w-[50px]" style="min-width: 30px; position: relative; top: -3px; text-align: left;">{{ room.scoreboard[player.sessionId].points || 0 }}</h4>
1111
<Pin :id="player.pin" :width="pinSize" />
12-
<h4>{{ player.username }}</h4>
12+
<h4 >{{ player.username }}</h4>
1313
</div>
1414
</div>
1515
</div>

0 commit comments

Comments
 (0)