Skip to content

Commit

Permalink
refactor(webapp): use v-icon instead of v-img for anycast locations
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Oct 31, 2024
1 parent 54ad81e commit 236cbb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
36 changes: 0 additions & 36 deletions www/webapp/src/assets/mapmarker.svg

This file was deleted.

11 changes: 6 additions & 5 deletions www/webapp/src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,12 @@
>
<v-tooltip bottom v-for="f in frontends" :key="f.host">
<template #activator="{ on }">
<v-img
<v-icon
v-on="on"
src="../assets/mapmarker.svg" alt="Anycast POP" height="2em" width="2em"
large
style="transform: translate(-50%, -100%); position: absolute"
:style="{left: f.left, top: f.top}"
style="transform: translate(-50%, -100%); position: absolute; overflow: visible;" contain
>
</v-img>
>{{ mdiMapMarker }}</v-icon>
</template>
<span>
{{ f.name }}
Expand Down Expand Up @@ -234,6 +233,7 @@ import {
mdiDns, mdiEmail, mdiFileCertificate, mdiFlower, mdiGift, mdiHeartBroken,
mdiIpNetworkOutline, mdiLan,
mdiLockOutline,
mdiMapMarker,
mdiMonitorCellphoneStar,
mdiRobot, mdiRunFast,
mdiTwoFactorAuthentication
Expand Down Expand Up @@ -503,6 +503,7 @@ export default {
"domains can be created. Please contact support explaining your use case to enable domain creation.",
},
],
mdiMapMarker: mdiMapMarker,
})
}
</script>

0 comments on commit 236cbb3

Please sign in to comment.