Fix popup hovering (bubbling)

This commit is contained in:
2020-08-20 22:02:57 +02:00
parent b0b283cf0f
commit 3c5a83b366
4 changed files with 25 additions and 13 deletions

View File

@@ -628,7 +628,12 @@ function initSpotMessages(aoMessages, aoTracks, bNoFeed) {
}); });
//Open tooltip on latest message in mobile mode //Open tooltip on latest message in mobile mode
if(iKey === (aoMessages.length - 1) && self.vars(['project', 'mode']) == self.consts.modes.blog && (!oMsg.medias || oMsg.medias.length < 3) && isMobile()) oMarker.openPopup(); if(
iKey === (aoMessages.length - 1) &&
self.vars(['project', 'mode']) == self.consts.modes.blog &&
(!oMsg.medias || oMsg.medias.length < 3) &&
isMobile()
) oMarker.openPopup();
oSpot.tmp(['markers', oMsg.id_message], oMarker); oSpot.tmp(['markers', oMsg.id_message], oMarker);
}); });

View File

@@ -16,11 +16,18 @@ $stroke-width-axis : 2;
.leaflet-container { .leaflet-container {
background: none; background: none;
} }
.leaflet-popup-content-wrapper {
border-radius: 5px; .leaflet-popup {
} padding-bottom: 60px;
.leaflet-popup-content { margin-bottom: -40px;
margin: 1rem;
.leaflet-popup-content-wrapper {
border-radius: 5px;
.leaflet-popup-content {
margin: 1rem;
}
}
} }
.leaflet-control.spot-control, .leaflet-control .heightgraph-toggle { .leaflet-control.spot-control, .leaflet-control .heightgraph-toggle {
@@ -29,7 +36,7 @@ $stroke-width-axis : 2;
width: 44px; width: 44px;
text-align: center; text-align: center;
box-shadow: none; box-shadow: none;
.fa, .heightgraph-toggle-icon { .fa, .heightgraph-toggle-icon {
@extend .control-icon; @extend .control-icon;
} }
@@ -62,7 +69,7 @@ $stroke-width-axis : 2;
svg.heightgraph-container { svg.heightgraph-container {
background: none; background: none;
border-radius: 0; border-radius: 0;
.area { .area {
@include drop-shadow(0.6); @include drop-shadow(0.6);
} }
@@ -71,11 +78,11 @@ $stroke-width-axis : 2;
.horizontalLine { .horizontalLine {
stroke-width: 2px; stroke-width: 2px;
} }
.heightgraph-toggle { .heightgraph-toggle {
height: 44px; height: 44px;
background: none; background: none;
.heightgraph-toggle-icon { .heightgraph-toggle-icon {
@extend .fa-elev-chart; @extend .fa-elev-chart;
position: static; position: static;
@@ -92,4 +99,4 @@ $stroke-width-axis : 2;
line-height: 28px; line-height: 28px;
display: none; display: none;
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long