mirror of
https://github.com/owntracks/frontend.git
synced 2026-05-21 04:22:48 +00:00
Fix vertical offset of non-pin popups
This commit is contained in:
@@ -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: {
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
:battery="l.batt"
|
||||
:speed="l.vel"
|
||||
:regions="l.inregions"
|
||||
:options="{ className: 'leaflet-popup--for-pin' }"
|
||||
/>
|
||||
</LMarker>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user