Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(studio)(qc-iot)(qc-sensor-details)[PWA]: Design mobile view for IoT popup details #398

Merged
merged 11 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reverted popup.removed() for non-mobile screens
  • Loading branch information
ramoncomendadorjr committed Aug 8, 2024
commit 4f2dc707e1ee5452eed7e3a7c3c40ead0548a919
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,6 @@ export class MapPlaygroundComponent implements OnInit, OnDestroy {
}
popUp.setLngLat(coordinates).setHTML(
`
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">

<div style="color: #333333;font-size: 13px;padding-top: 4px;">
<div><b>Name:</b> ${name} </div>
<div><b>IoT Sensor Type:</b> ${iotType}</div>
Expand Down Expand Up @@ -714,7 +710,8 @@ export class MapPlaygroundComponent implements OnInit, OnDestroy {
});
}
} else {
// popUp.remove();
popUp.remove();
popUpMobileView.remove();
chartPopUp.remove();
this.map.on('mouseenter', qcSensorType, (e) => {
_this._graphShown = false;
Expand All @@ -725,16 +722,17 @@ export class MapPlaygroundComponent implements OnInit, OnDestroy {
this.map.on('mouseleave', qcSensorType, (e) => {
_this._graphShown = false;
_this.map.getCanvas().style.cursor = '';
// popUp.remove();
popUp.remove();
chartPopUpOpen = false;
});
}
});
popUp.on('close', () => (_this._graphShown = false));
popUpMobileView.on('close', () => (_this._graphShown = false));
this.map.on('mouseleave', qcSensorType, function () {
if (_this._graphShown) return;
_this.map.getCanvas().style.cursor = '';
// popUp.remove();
popUp.remove();
});
}

Expand Down