Skip to content

Commit

Permalink
fix: Add more flexible map style
Browse files Browse the repository at this point in the history
  • Loading branch information
natlex-to-me committed Dec 20, 2020
1 parent 73c54aa commit 7c5a080
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:host {
display: contents;
}

.map {
display: contents;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<ng-container *ngIf="loaded$ | async">
<google-map width="100%"></google-map>
<google-map class="map" height="100%" width="100%"></google-map>
</ng-container>
9 changes: 9 additions & 0 deletions src/src/app/main/main.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:host {
display: contents;
}

.content {
display: flex;
flex-direction: column;
height: 100%;
}
10 changes: 7 additions & 3 deletions src/src/app/main/main.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<p>main works!</p>
<div class="content">
<p>main works!</p>

<app-google-map></app-google-map>
<app-google-map></app-google-map>

<app-date-slider (onSliderChange)="outputSliderRange($event)"></app-date-slider>
<app-date-slider
(onSliderChange)="outputSliderRange($event)"
></app-date-slider>
</div>

0 comments on commit 7c5a080

Please sign in to comment.