Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: facility details "New Case" button position #263

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class FacilityDetailFacade {

private randomEcoScoreFromString(str: string) {
// exception for the very legitimate waste disposal :D
if(str === 'totally legal waste disposal'){
if(str === 'Totally legal waste disposal'){
return 26;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<ix-content>
<div class="details-grid gap-x-6 gap-y-4 pb-32">
@if(this.pumpChart(); as pumpChart){
<div echarts [options]="pumpChart" [theme]="theme()" style="height: 25rem"></div>
<div echarts [options]="pumpChart" [theme]="theme()" style="height: 25rem"></div>
} @if(this.envChart(); as envChart){
<div echarts [options]="envChart" [theme]="theme()" style="height: 25rem"></div>
<div echarts [options]="envChart" [theme]="theme()" style="height: 25rem"></div>
} @if(this.metricsChart(); as metricsChart){
<div echarts [options]="metricsChart" [theme]="theme()" style="height: 25rem"></div>
<div echarts [options]="metricsChart" [theme]="theme()" style="height: 25rem"></div>
}

<ix-card variant="insight" class="h-full w-full p-4">
Expand Down Expand Up @@ -59,7 +59,13 @@
<ix-typography color="std">
{{ getCasesText(facility.cases.length) }}
</ix-typography>
<div class="flex flex-row justify-between w-full">
<div class="flex flex-row-reverse justify-between w-full h-full">
<div class="mt-auto p-2">
<ix-button [routerLink]="['/cases/create',{ facilityId: facility.id }]">
New Case
</ix-button>
</div>

@if (facility.cases.length > 0) {
<div>
<div class="flex flex-col pt-2">
Expand All @@ -76,12 +82,6 @@
}
</div>
}

<div class="mt-auto p-2">
<ix-button [routerLink]="['/cases/create',{ facilityId: facility.id }]">
New Case
</ix-button>
</div>
</div>
</ix-card-content>
</ix-card>
Expand Down