Repository navigation
fix(orders): canvas map chrome no longer blocks the map, view switch clears the order sheet - #445
Merged
Merged
Conversation
…anvas map chrome The canvas map chrome forced pointer-events: auto on every child, which beat the drawer's and the order list overlay's own pass-through rules (same specificity, engine CSS loads later). Both span the whole map, so the minimized drawer swallowed every click on the map and on the Map/Table/Board switch.
…eet is open The switch floated above the order sheet (z-index 20 over 14) and hid its header.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature/map-canvas #445 +/- ##
======================================================
Coverage 100.00% 100.00%
Complexity 20747 20747
======================================================
Files 794 794
Lines 65726 65726
======================================================
Hits 65726 65726
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On the canvas layout, the orders map view could not be clicked. Neither the map nor the Map / Table / Board switch responded.
.fleetops-canvas-map-chrome.next-map-container > * { pointer-events: auto }matched every child of the map chrome. That includesMap::DrawerandMap::OrderListOverlay, and both span the whole map. The rule beat ember-ui's own pass-through rules:.next-drawer.drawer-is-minimizedand.next-content-overlay.no-backdrophave the same specificity, and engine CSS loads later. So the minimized drawer's full-size root sat at z-index 800 over the map and caught every click.Fix
Leave both components out of the rule:
> *:not(.next-drawer, .next-content-overlay). They already handle their own pointer events; only their panels take clicks.Verified
Tested locally on the canvas console with
elementFromPoint:Map panning over the content area also needs the console section to pass the pointer through. That change goes in fleetbase/fleetbase#774.
Prettier and stylelint pass.
Also: view switch over the order sheet
The floating Map / Table / Board switch (z-index 20, top centre) sat on top of the open order sheet (z-index 14) and covered its avatar and tracking number. While a right-hand sheet is open, the switch now centres over the map that is still uncovered:
calc((100% - 640px) / 2), since the order sheet islg. Verified locally.