WEB-512: Fix spacing and alignment of search box and add button on Manage Currencies page

This commit is contained in:
shubhamsharma9199
2025-12-30 06:00:52 +05:30
parent 62c175ff15
commit 3e72f2d08e
2 changed files with 33 additions and 9 deletions
@@ -1,13 +1,8 @@
<div class="container">
<mat-card>
<div #currencyFormRef>
<form
#formRef="ngForm"
[formGroup]="currencyForm"
class="layout-row align-start-baseline gap-20px flex-48"
(ngSubmit)="addCurrency()"
>
<mat-form-field class="flex-fill flex-90-minus-20px">
<div #currencyFormRef class="currency-form-container">
<form #formRef="ngForm" [formGroup]="currencyForm" class="layout-row gap-20px" (ngSubmit)="addCurrency()">
<mat-form-field class="currency-search-field">
<mat-label>{{ 'labels.inputs.Currency' | translate }}</mat-label>
<mat-select required formControlName="currency">
<mat-option>
@@ -30,10 +25,13 @@
</mat-form-field>
<button
type="button"
mat-raised-button
class="flex-fill"
class="add-currency-button"
color="primary"
[disabled]="!currencyForm.valid"
[attr.aria-label]="'labels.buttons.Add Currency' | translate"
[title]="'labels.buttons.Add Currency' | translate"
*mifosxHasPermission="'UPDATE_CURRENCY'"
>
<fa-icon icon="plus"></fa-icon>
@@ -47,9 +45,12 @@
<div class="grid-container">
<div>
<button
type="button"
mat-button
color="warn"
(click)="deleteCurrency(currency.code, i)"
[attr.aria-label]="'labels.buttons.Delete' | translate"
[title]="'labels.buttons.Delete' | translate"
*mifosxHasPermission="'UPDATE_CURRENCY'"
>
<fa-icon icon="trash"></fa-icon>
@@ -2,6 +2,29 @@
width: 74rem;
}
.currency-form-container {
padding: 16px 24px;
margin-bottom: 16px;
}
.currency-search-field {
flex: 1 1 auto;
min-width: 0;
margin-right: 20px;
}
.add-currency-button {
flex-shrink: 0;
min-width: 56px;
width: 56px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
align-self: flex-end;
margin-bottom: 2.1em;
}
.currency-grid {
max-width: 40%;
justify-content: left !important;