Skip to content

Commit

Permalink
add emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinmichels committed Dec 9, 2024
1 parent 151a1cd commit b67810f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/GuessedList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<label class="panel-block" v-for="(guess, index) in guessed">
<span v-if="guess.name">
{{ index + 1 }}) {{ guess.name }}
{{ index + 1 }}) {{ guess.name }}
{{ directionToArrow(guess.direction) }}
({{ guess.distance.toFixed(0) }} km)
</span>
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/util/geo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ export class MapUtil {

export function directionToArrow(direction: Bearing) {
const arrowMap = {
N: '',
NE: '↗',
E: '',
SE: '↘',
S: '',
N: '⬆️',
NE: '↗',
E: '➡️',
SE: '↘',
S: '⬇️',
SW: '↙️',
W: '',
NW: '↖',
W: '⬅️',
NW: '↖',
}
return arrowMap[direction]
}

0 comments on commit b67810f

Please sign in to comment.