<!--
Copyright 2020 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<mat-list *ngIf="layers$ | async as layers" role="list" fxLayoutRow>
  <h3 matSubheader>Layers</h3>
  <mat-divider></mat-divider>
  <ground-layer-list-item
    *ngFor="let entry of layers"
    [layer]="entry"
  ></ground-layer-list-item>
</mat-list>
<div fxFill class="add-layer">
  <button
    fxFill
    mat-stroked-button
    color="primary"
    class="add-layer-btn"
    (click)="onAddLayer()"
  >
    <mat-icon class="add-layer-icon">add</mat-icon>
    Add layer
  </button>
</div>

<!--
Copyright 2020 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<mat-list *ngIf="layers$ | async as layers" role="list" fxLayoutRow>
  <h3 matSubheader>Layers</h3>
  <mat-divider></mat-divider>
  <ground-layer-list-item
    *ngFor="let entry of layers"
    [layer]="entry"
  ></ground-layer-list-item>
  <div matLine class="add-layer">
    <button
      fxFill
      mat-stroked-button
      color="primary"
      class="add-layer-btn"
      (click)="onAddLayer()"
    >
      <mat-icon class="add-layer-icon">add</mat-icon>
      Add layer
    </button>
  </div>
</mat-list>

Fix alignment of Add Layer button
Fix alignment of Add Layer button
