Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
BE-#0: Fix scroll-margin for widget-container in mobile layout and fi…
Browse files Browse the repository at this point in the history
…x maps widget change detection
  • Loading branch information
Drumber committed May 27, 2024
1 parent 844c5ab commit 0ca3f17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

app-widget-container {
scroll-margin-top: 50px;
scroll-margin-top: 70px;
}
}

Expand All @@ -36,7 +36,7 @@
}

app-widget-container {
scroll-margin-top: calc(var(--mat-toolbar-mobile-height) + 50px);
scroll-margin-top: calc(var(--mat-toolbar-mobile-height) + 70px) !important;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class MapsWidgetComponent implements OnInit {

@Input({transform: (value: BaseWidget): MapWidget => value as MapWidget})
set widget(value: MapWidget) {
const hasChanged = value !== this._widget;
const hasChanged = value?.id !== this._widget?.id;
this._widget = value;
if (hasChanged && value.locations.length > 0) {
this.focusLocation(value.locations[0]);
Expand Down

0 comments on commit 0ca3f17

Please sign in to comment.