[ACS-7575] create library dialog fixes (#9574)

This commit is contained in:
Mykyta Maliarchuk 2024-04-19 09:21:41 +02:00 committed by VitoAlbano
parent 4f41834910
commit 0c816d75d6
2 changed files with 17 additions and 8 deletions

View File

@ -1,10 +1,10 @@
<h2 mat-dialog-title>{{ createTitle | translate }}</h2>
<mat-dialog-content>
<mat-dialog-content class="adf-library-dialog-content">
<form novalidate [formGroup]="form" (submit)="submit()">
<mat-form-field class="adf-library-dialog-form-field">
<mat-form-field class="adf-library-dialog-form-field" appearance="outline">
<mat-label>{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}</mat-label>
<input
placeholder="{{ 'LIBRARY.DIALOG.FORM.NAME' | translate }}"
required
matInput
formControlName="title"
@ -28,10 +28,10 @@
</mat-error>
</mat-form-field>
<mat-form-field class="adf-library-dialog-form-field">
<mat-form-field class="adf-library-dialog-form-field" appearance="outline">
<mat-label>{{ 'LIBRARY.DIALOG.FORM.SITE_ID' | translate }}</mat-label>
<input
required
placeholder="{{ 'LIBRARY.DIALOG.FORM.SITE_ID' | translate }}"
matInput
formControlName="id"
autocomplete="off"
@ -46,10 +46,10 @@
</mat-error>
</mat-form-field>
<mat-form-field class="adf-library-dialog-form-field">
<mat-form-field class="adf-library-dialog-form-field" appearance="outline">
<mat-label>{{ 'LIBRARY.DIALOG.FORM.DESCRIPTION' | translate }}</mat-label>
<textarea
matInput
placeholder="{{ 'LIBRARY.DIALOG.FORM.DESCRIPTION' | translate }}"
rows="3"
formControlName="description"
></textarea>

View File

@ -1,8 +1,13 @@
.adf-library-dialog {
.adf-library-dialog-content {
padding: 0;
overflow: unset;
}
.adf-library-dialog-radio-group {
display: flex;
flex-direction: column;
margin: 0 0 20px;
margin: 0;
}
.adf-library-dialog-radio-group .adf-library-dialog-radio-group-button {
@ -21,6 +26,10 @@
.adf-action-button {
text-transform: uppercase;
span {
font-weight: 500;
}
}
}
}