Fix vertical offset of non-pin popups

This commit is contained in:
Linus Groh
2020-06-03 20:33:26 +01:00
parent 0f0f29fcee
commit 6180e52f71
3 changed files with 10 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<template>
<LPopup>
<LPopup :options="options">
<div class="device">{{ deviceName }}</div>
<div class="wrapper">
<img
@@ -136,6 +136,10 @@ export default {
type: Array,
default: () => [],
},
options: {
type: Object,
default: () => {},
},
},
computed: {
/**

View File

@@ -4,7 +4,10 @@
.leaflet-popup {
filter: var(--drop-shadow);
margin-bottom: calc(var(--pin-width) * 1.5 + 20px);
&--for-pin {
margin-bottom: calc(var(--pin-width) * 1.5 + 20px);
}
.leaflet-popup-content-wrapper {
border-radius: 3px;

View File

@@ -51,6 +51,7 @@
:battery="l.batt"
:speed="l.vel"
:regions="l.inregions"
:options="{ className: 'leaflet-popup--for-pin' }"
/>
</LMarker>
</template>