Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI updates: Marker tooltip based on menuPosition

Robin Dekkersb986c1eff824
diff --git a/ui/app/or-app/src/pages/page-mobile-geofences.ts b/ui/app/or-app/src/pages/page-mobile-geofences.ts
index b58a1c457..4cc251791 100644
--- a/ui/app/or-app/src/pages/page-mobile-geofences.ts
+++ b/ui/app/or-app/src/pages/page-mobile-geofences.ts
@@ -117,7 +117,12 @@ class PageMobileGeofences<S extends AppStateKeyed> extends Page<S> {
z-index: 99999;
}
-
+
+ .marker-tooltip.full-width {
+ width: 100%;
+ max-width: none
+ }
+
.marker-tooltip.bottom_left {
top: auto;
bottom: 0;
@@ -236,7 +241,7 @@ class PageMobileGeofences<S extends AppStateKeyed> extends Page<S> {
`})}
</or-map>
${this.activeItem ? html`
- <a class="marker-tooltip ${manager.consoleAppConfig.appIconPosition ? manager.consoleAppConfig.appIconPosition.toLowerCase() : ""}" href="${this.createUrl(this.activeItem.notification.action)}">
+ <a class="marker-tooltip ${manager.consoleAppConfig.menuPosition ? manager.consoleAppConfig.menuPosition.toLowerCase() : ""} ${manager.consoleAppConfig.menuEnabled ? "" : "full-width"}" href="${this.createUrl(this.activeItem.notification.action)}">
<div class="flex marker-tooltip-inner" >
<div style="flex-direction:row;" class="d-flex">
<div class="flex">