Skip to content

Commit

Permalink
Merge pull request #1084 from alaskanpuffin/missing-context-menu-icons
Browse files Browse the repository at this point in the history
Fix missing context menu icons
  • Loading branch information
tacruc authored Jul 1, 2023
2 parents 68d5226 + e15d617 commit 0cfa0ba
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/components/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -453,22 +453,22 @@ export default {
const cmi = [
{
text: t('maps', 'Add a favorite'),
icon: generateUrl('/svg/core/actions/starred?color=' + iconColor),
iconCls: 'icon-favorite',
callback: this.contextAddFavorite,
},
{
text: t('maps', 'Place photos'),
icon: generateUrl('/svg/core/places/picture?color=' + iconColor),
iconCls: 'icon-category-multimedia',
callback: this.contextPlacePhotos,
},
{
text: t('maps', 'Place contact'),
icon: generateUrl('/svg/core/actions/user?color=' + iconColor),
iconCls: 'icon-group',
callback: this.placeContactClicked,
},
{
text: t('maps', 'Share this location'),
icon: generateUrl('/svg/core/actions/share?color=' + iconColor),
iconCls: 'icon-address',
callback: this.contextShareLocation,
},
]
Expand Down Expand Up @@ -518,7 +518,7 @@ export default {
'-',
{
text: t('maps', 'Route from here'),
icon: generateUrl('/svg/core/filetypes/location?color=00cc00'),
iconCls: 'icon-address',
callback: (e) => {
if (!this.showRouting) {
this.showRouting = true
Expand All @@ -527,7 +527,7 @@ export default {
},
}, {
text: t('maps', 'Add route point'),
icon: generateUrl('/svg/core/filetypes/location?color=0000cc'),
iconCls: 'icon-add',
callback: (e) => {
if (!this.showRouting) {
this.showRouting = true
Expand All @@ -536,7 +536,7 @@ export default {
},
}, {
text: t('maps', 'Route to here'),
icon: generateUrl('/svg/core/filetypes/location?color=cc0000'),
iconCls: 'icon-address',
callback: (e) => {
if (!this.showRouting) {
this.showRouting = true
Expand Down Expand Up @@ -1117,6 +1117,7 @@ export default {
::v-deep .leaflet-contextmenu-item {
line-height: 30px !important;
color: var(--color-text-lighter) !important;
cursor: pointer !important;
}
::v-deep .leaflet-contextmenu-item:hover {
Expand All @@ -1125,10 +1126,14 @@ export default {
border-color: var(--color-border) !important;
}
::v-deep .leaflet-contextmenu-item img {
::v-deep .leaflet-contextmenu-icon {
margin: 7px 8px 0 0 !important;
}
::v-deep .leaflet-contextmenu-separator {
border-color: var(--color-border) !important;
}
::v-deep .leaflet-marker-photo,
::v-deep .leaflet-marker-contact {
width: 40px !important;
Expand Down

0 comments on commit 0cfa0ba

Please sign in to comment.