From 06a08c63526228cd409f83852c47d51f2b9654dd Mon Sep 17 00:00:00 2001 From: David Hochbaum Date: Wed, 8 May 2024 13:39:15 -0400 Subject: [PATCH] Corrected spelling error, removed !important and commented out code --- app/components/main-map.js | 4 ++-- app/components/print-view-controls.js | 6 +++--- app/controllers/application.js | 4 ++-- app/styles/layouts/_l-default.scss | 3 +-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/app/components/main-map.js b/app/components/main-map.js index 35f646ac..f5c7dcb4 100644 --- a/app/components/main-map.js +++ b/app/components/main-map.js @@ -54,7 +54,7 @@ export default class MainMap extends Component { highlightedLayerId = null; - widowResize() { + windowResize() { return new Promise((resolve) => { setTimeout(() => { const resizeEvent = window.document.createEvent('UIEvents'); @@ -273,6 +273,6 @@ export default class MainMap extends Component { this.set('printSvc.enabled', true); - await this.widowResize(); + await this.windowResize(); } } diff --git a/app/components/print-view-controls.js b/app/components/print-view-controls.js index d25f486f..75acfe31 100644 --- a/app/components/print-view-controls.js +++ b/app/components/print-view-controls.js @@ -9,7 +9,7 @@ export default class PrintViewControls extends Component { @service metrics; - widowResize() { + windowResize() { return new Promise((resolve) => { setTimeout(() => { const resizeEvent = window.document.createEvent('UIEvents'); @@ -35,10 +35,10 @@ export default class PrintViewControls extends Component { this.set('printSvc.enabled', false); - await this.widowResize(); + await this.windowResize(); } async click() { - await this.widowResize(); + await this.windowResize(); } } diff --git a/app/controllers/application.js b/app/controllers/application.js index c437b6a6..84799092 100644 --- a/app/controllers/application.js +++ b/app/controllers/application.js @@ -94,7 +94,7 @@ export default class ApplicationController extends Controller.extend( @tracked layerGroupsStorage; - widowResize() { + windowResize() { return new Promise((resolve) => { setTimeout(() => { const resizeEvent = window.document.createEvent('UIEvents'); @@ -210,7 +210,7 @@ export default class ApplicationController extends Controller.extend( mapContainer.setAttribute('class', 'map-container'); else mapContainer.setAttribute('class', 'map-container full-width'); - await this.widowResize(); + await this.windowResize(); this.metrics.trackEvent('MatomoTagManager', { category: 'Toggled Layer Menu Visibility', diff --git a/app/styles/layouts/_l-default.scss b/app/styles/layouts/_l-default.scss index 23ae7dbe..b36cab4a 100644 --- a/app/styles/layouts/_l-default.scss +++ b/app/styles/layouts/_l-default.scss @@ -97,7 +97,7 @@ body { } &.full-width { - width: 100% !important; + width: 100%; } } @@ -256,7 +256,6 @@ body.index { background-color: $white; margin-left: -4px; padding: 0 rem-calc(6) rem-calc(6); - // box-shadow: -4px 4px 0 rgba(0,0,0,0.1); } @include breakpoint(xxlarge) { left: 18rem;