-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1476 from rodekruis/fix.popup-style
fix: adjust popup style AB#25371
- Loading branch information
Showing
8 changed files
with
89 additions
and
55 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...d/src/app/components/leaflet-popup/dynamic-point-popup/dynamic-point-popup.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 40 additions & 26 deletions
66
...ts/leaflet-popup/glofas-station-popup-content/glofas-station-popup-content.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
<div style="margin-bottom: 4px"> | ||
{{ data?.leadTime }} forecast of | ||
<span | ||
title="The amount of water moving down a river at a given time and place" | ||
style=" | ||
text-decoration: underline; | ||
text-decoration-style: dotted; | ||
cursor: default; | ||
" | ||
>river discharge</span | ||
<ng-container *ngIf="data?.station?.dynamicData"> | ||
<div style="margin-bottom: 4px"> | ||
{{ data?.leadTime }} forecast of | ||
<span | ||
title="The amount of water moving down a river at a given time and place" | ||
style=" | ||
text-decoration: underline; | ||
text-decoration-style: dotted; | ||
cursor: default; | ||
" | ||
>river discharge</span | ||
> | ||
in m<sup>3</sup>/s | ||
<ng-container *ngIf="data?.station?.dynamicData?.forecastReturnPeriod"> | ||
<br /> | ||
(Corresponding to a return period of | ||
<strong>{{ data?.station?.dynamicData?.forecastReturnPeriod }}</strong> | ||
years) | ||
</ng-container> | ||
</div> | ||
<app-threshold-bar | ||
[backgroundColor]="barBackgroundColor" | ||
[textColor]="barTextColor" | ||
[barWidth]="triggerWidth" | ||
[barValue]="addComma(barValue)" | ||
thresholdDescription="Trigger activation threshold" | ||
[thresholdValue]="data?.station?.dynamicData?.triggerLevel" | ||
[thresholdPosition]="80" | ||
></app-threshold-bar> | ||
</ng-container> | ||
<ng-container *ngIf="!data?.station?.dynamicData"> | ||
<div | ||
style="margin-bottom: 4px; display: flex; justify-content: space-between" | ||
> | ||
in m<sup>3</sup>/s | ||
<ng-container *ngIf="data?.station?.forecastReturnPeriod"> | ||
<br /> | ||
(Corresponding to a return period of | ||
<strong>{{ data?.station?.forecastReturnPeriod }}</strong> years) | ||
</ng-container> | ||
</div> | ||
<app-threshold-bar | ||
[backgroundColor]="barBackgroundColor" | ||
[textColor]="barTextColor" | ||
[barWidth]="triggerWidth" | ||
[barValue]="addComma(barValue)" | ||
thresholdDescription="Trigger activation threshold" | ||
[thresholdValue]="data?.station?.dynamicData?.triggerLevel" | ||
[thresholdPosition]="80" | ||
></app-threshold-bar> | ||
<div> | ||
<ion-label style="font-size: 18px; padding-right: 8px"> | ||
{{ 'map-popups.glofas-station.no-data' | translate }} | ||
</ion-label> | ||
</div> | ||
</div> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters