Skip to content

Commit ea237e0

Browse files
weskubo-cgiweskubo-cgi
andauthored
Fixed card alignment. (#503)
Co-authored-by: weskubo-cgi <Wesley.Kubo@gov.bc.ca>
1 parent 02b8edd commit ea237e0

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

frontend/src/views/applications/ApplicationsHistoryView.vue

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
<h3 class="my-2">Add New Application</h3>
77
<v-row class="align-end">
88
<v-col cols="12" md="6">
9-
<v-card class="basic-card justify-center">
9+
<v-card class="basic-card justify-center" :class="cardClass">
1010
<v-card-title class="text-center text-wrap">
1111
<v-icon class="mr-2">mdi-file-document-edit-outline</v-icon>
1212
$10 a Day Funding Application
1313
</v-card-title>
14-
<v-card-text class="text-center d-flex flex-column align-center pt-4 pb-0">
14+
<v-card-text class="text-center d-flex flex-column align-center pt-1 pb-0">
1515
{{ ofmApplicationCardText }}
1616
</v-card-text>
1717
<v-card-actions class="d-flex flex-column align-center">
18-
<AppButton id="core-application-button" :loading="loading" :disabled="!isAddCoreApplicationAllowed" :to="{ name: APPLICATION_ROUTES.SELECT_FACILITY }" class="ma-2 mt-8">
18+
<AppButton id="core-application-button" :loading="loading" :disabled="!isAddCoreApplicationAllowed" :to="{ name: APPLICATION_ROUTES.SELECT_FACILITY }" class="ma-2 mt-3">
1919
Add $10 a Day Application
2020
</AppButton>
2121
</v-card-actions>
@@ -29,33 +29,33 @@
2929
</AppAlertBanner>
3030
<AppAlertBanner v-else type="info">If there is no active OFM application, you will not be able to submit Allowances applications.</AppAlertBanner>
3131
</div>
32-
<v-card class="basic-card justify-center">
32+
<v-card class="basic-card justify-center" :class="cardClass">
3333
<v-card-title class="text-center text-wrap">
3434
<v-icon class="mr-2">mdi-file-document-edit-outline</v-icon>
3535
Allowances (Core and Discretionary Services) Application
3636
</v-card-title>
37-
<v-card-text class="text-center d-flex flex-column align-center pt-4 pb-0">You must have an active OFM application for the facility to apply for Allowances.</v-card-text>
37+
<v-card-text class="text-center d-flex flex-column align-center pt-1 pb-0">You must have an active OFM application for the facility to apply for Allowances.</v-card-text>
3838
<v-card-actions class="d-flex flex-column align-center">
39-
<AppButton id="supp-allowances-button" :loading="loading" :disabled="!hasAValidApplicationAndGoodStanding" :to="{ name: 'supp-allowances' }" class="ma-2 mt-8">
39+
<AppButton id="supp-allowances-button" :loading="loading" :disabled="!hasAValidApplicationAndGoodStanding" :to="{ name: 'supp-allowances' }" class="ma-2 mt-3">
4040
Add Allowances Application
4141
</AppButton>
4242
</v-card-actions>
4343
</v-card>
4444
</v-col>
4545

4646
<v-col v-if="showIrregularExpenseCard" cols="12" md="6">
47-
<v-card class="basic-card justify-center">
47+
<v-card class="basic-card justify-center" :class="cardClass">
4848
<v-card-title class="text-center text-wrap">
4949
<v-icon class="mr-2">mdi-file-document-edit-outline</v-icon>
5050
Irregular Expenses Funding Application
5151
</v-card-title>
52-
<v-card-text class="text-center d-flex flex-column align-center pt-4 pb-0">
52+
<v-card-text class="text-center d-flex flex-column align-center pt-1 pb-0">
5353
To apply for Irregular Expenses, you must have an active Funding Agreement in place.
5454
<br />
5555
Funding requires approval before your facility incurs expenses, and you must demonstrate need for the funding.
5656
</v-card-text>
5757
<v-card-actions class="d-flex flex-column align-center">
58-
<AppButton id="irregular-expense-button" :loading="loading" class="ma-2 mt-8 text-wrap" @click="toggleChangeRequestDialog">Add Irregular Expenses Funding Application</AppButton>
58+
<AppButton id="irregular-expense-button" :loading="loading" class="ma-2 mt-3 text-wrap" @click="toggleChangeRequestDialog">Add Irregular Expenses Funding Application</AppButton>
5959
</v-card-actions>
6060
</v-card>
6161
</v-col>
@@ -295,6 +295,12 @@ export default {
295295
(application) => application?.isUnionized === UNION_TYPE_CODES.NO && application?.stateCode === CRM_STATE_CODES.ACTIVE && application?.statusCode !== APPLICATION_STATUS_CODES.DRAFT,
296296
)
297297
},
298+
cardClass() {
299+
return {
300+
'application-card-lg': this.$vuetify.display.lg || this.$vuetify.display.xl,
301+
'application-card-md': this.$vuetify.display.md,
302+
}
303+
},
298304
},
299305
300306
async created() {
@@ -596,4 +602,12 @@ export default {
596602
.soft-outline {
597603
border: 1px solid #dee2e6 !important;
598604
}
605+
606+
.application-card-lg {
607+
min-height: 190px;
608+
}
609+
610+
.application-card-md {
611+
min-height: 210px;
612+
}
599613
</style>

0 commit comments

Comments
 (0)