Skip to content

Commit

Permalink
Merge pull request #159 from akhuoa/bugfix/tooltip-arrows
Browse files Browse the repository at this point in the history
Fix tooltip arrow on top position
  • Loading branch information
alan-wu authored Apr 15, 2024
2 parents 387c93c + 34d601e commit 1494847
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/FlatmapVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2024,19 +2024,20 @@ export default {
}
&.maplibregl-popup-anchor-top {
.maplibregl-popup-content {
margin-top: 18px;
margin-top: 12px;
&::after,
&::before {
top: calc(-100% - 4px);
top: auto;
bottom: 100%;
border-width: 12px;
}
/* this border color controlls the color of the triangle (what looks like the fill of the triangle) */
&::after {
margin-top: 1px;
border-color: transparent transparent rgb(255, 255, 255) transparent;
}
&::before {
margin: 0 auto;
margin-bottom: 1px;
border-color: transparent transparent $app-primary-color transparent;
}
}
Expand Down

0 comments on commit 1494847

Please sign in to comment.