Merge pull request #17 from 0hAodha/andrew

change train icon + fix icon positioning
This commit is contained in:
Conor McNamara
2023-02-23 14:40:44 +00:00
committed by GitHub
2 changed files with 11 additions and 9 deletions

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M96 0C43 0 0 43 0 96V352c0 48 35.2 87.7 81.1 94.9l-46 46C28.1 499.9 33.1 512 43 512H82.7c8.5 0 16.6-3.4 22.6-9.4L160 448H288l54.6 54.6c6 6 14.1 9.4 22.6 9.4H405c10 0 15-12.1 7.9-19.1l-46-46c46-7.1 81.1-46.9 81.1-94.9V96c0-53-43-96-96-96H96zM64 96c0-17.7 14.3-32 32-32H352c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V96zM224 288a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"/></svg>

After

Width:  |  Height:  |  Size: 636 B

View File

@ -7,7 +7,7 @@
<div v-if="this.display" id= "sidebarDiv">
<div id = "sidebarHeader">
<img id = "headerImage" src="https://cdn.discordapp.com/attachments/1017419092447207436/1063092138029625394/pixil-frame-0.png">
<img id = "headerImage" src="../assets/train-solid.svg" alt="Train Icon">
<div v-on:click="this.display = false" id="xButton">X</div>
</div>
@ -30,9 +30,10 @@
</ol-tile-layer>
<template v-for="coordinate, i in coordinates" :position="inline-block">
<ol-overlay :position="coordinate">
<!-- overlay offset is the size of the image so that it is centered-->
<ol-overlay :position="coordinate" :positioning="center-center" :offset="[-16,-16]">
<div class="overlay-content" @click="getSelectedTrain(i)">
<img src="https://cdn.discordapp.com/attachments/1017419092447207436/1063092138029625394/pixil-frame-0.png" class="trainMapIcon">
<img src="../assets/train-solid.svg" class="trainMapIcon" alt="Train Icon">
</div>
</ol-overlay>
@ -150,8 +151,8 @@ export default {
}
.trainMapIcon {
height: 5.5vh;
width: 3.5vw;
height: 32px;
width: 32px;
}
.slideLeft-enter-active, .slideLeft-leave-active {