Skip to content

Commit

Permalink
refact: use same spinner used in index.html
Browse files Browse the repository at this point in the history
Reviewed-by: andriac
  • Loading branch information
andriacap committed Dec 18, 2024
1 parent 877b602 commit 178417b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
12 changes: 0 additions & 12 deletions frontend/src/app/programs/observations/form/form.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,3 @@ app-obs-form .dropdown-menu.show {
height: 200px;
max-height: 200px;
}

.spinner-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
align-items: center;
height: 100vh; /* Occupation complète de la fenêtre */
width: 100%;
}
10 changes: 5 additions & 5 deletions frontend/src/app/programs/observations/form/form.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ <h5 *ngIf="taxaCount > 1" class="m-0">
<label for="cd_nom" class="m-0">{ autocomplete, select, isOn {Rechercher une esp&egrave;ce}
isOff {S&eacute;lectionnez une esp&egrave;ce}}</label>
</h5>
<div *ngIf="loading" class="spinner-container">
<div class="spinner-border text-primary" role="status">
<span class="sr-only">Chargement...</span>
</div>
</div>
<div
*ngIf="loading"
class="loader"
id="spinner"
></div>
<!-- TAXON SELECT -->
<div class="row" *ngIf="!loading">
<div class="form-group col-lg-12 col-md-12">
Expand Down

0 comments on commit 178417b

Please sign in to comment.