WEB-392: Fix alignment of download and upload buttons in bulk import
- Added min-height to mat-cards to ensure consistent height - Added flex-spacer to push buttons to the bottom - Removed flex-grow from mat-card-content - Buttons now align horizontally regardless of varying card content
This commit is contained in:
@@ -66,13 +66,13 @@
|
|||||||
'labels.text.Please retain the value Entity/Person in the filename.' | translate
|
'labels.text.Please retain the value Entity/Person in the filename.' | translate
|
||||||
}}</mat-hint>
|
}}</mat-hint>
|
||||||
|
|
||||||
|
<div class="flex-spacer"></div>
|
||||||
|
|
||||||
<div class="flex-13">
|
<div class="flex-13">
|
||||||
<button mat-raised-button color="primary" [disabled]="!template" (click)="uploadTemplate()">
|
<button mat-raised-button color="primary" [disabled]="!template" (click)="uploadTemplate()">
|
||||||
<i class="fa fa-upload"></i> {{ 'labels.buttons.Upload' | translate }}
|
<i class="fa fa-upload"></i> {{ 'labels.buttons.Upload' | translate }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="bulkImport.formFields >= 2" class="flex cover"></div>
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
|
min-height: 400px;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin: 0 0 20px;
|
margin: 0 0 20px;
|
||||||
@@ -36,7 +37,6 @@
|
|||||||
mat-card-content {
|
mat-card-content {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
flex-grow: 1;
|
|
||||||
|
|
||||||
mat-form-field {
|
mat-form-field {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -55,6 +55,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-spacer {
|
||||||
|
flex: 1;
|
||||||
|
min-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
mifosx-file-upload {
|
mifosx-file-upload {
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user