styling changes

1. description template > fixed import dialog
2. description template editor > fixed autocomplete input for editors on screen resize
This commit is contained in:
Sofia Papacharalampous 2024-04-02 14:46:25 +03:00
parent 340692a3b5
commit bc16f8a2c4
3 changed files with 45 additions and 43 deletions

View File

@ -134,8 +134,7 @@
<div class="col-12">
<div class="row justify-content-end">
<div class="col d-flex justify-content-end" style="overflow: hidden;">
<div style="min-width: 20em;max-width: 25em;">
<div class="col-12 col-lg-4 d-flex justify-content-end" style="overflow: hidden;">
<!-- <mat-form-field>
<input matInput #email placeholder="{{'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-USERS'| translate}}" (focus)="onUserFieldFocus()" (blur)="onUserFieldBlur()" (keyup.enter)="addUser(email)">
</mat-form-field> -->
@ -146,7 +145,6 @@
<mat-error *ngIf="formGroup.get('type').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
</mat-form-field>
</div>
</div>
<!-- <div class="col-auto">
<button mat-mini-fab color="primary" (click)="addUser(email)" (focus)="onUserButtonFocus()" (blur)="onUserButtonBlur()" [matTooltip]="'DESCRIPTION-TEMPLATE-EDITOR.STEPS.GENERAL-INFO.DATASET-TEMPLATE-VALIDATE-AND-ADD-USER'| translate" [disabled]="userFormDisabled">

View File

@ -1,5 +1,5 @@
<div class="confirmation-dialog">
<div class="row d-flex">
<div class="container-fluid">
<div class="row d-flex mt-2">
<div class="confirmation-message col-auto align-self-center">
<h4>{{ data.message }}</h4>
</div>
@ -7,6 +7,7 @@
<mat-icon class="close-btn" (click)="cancel()">close</mat-icon>
</div>
</div>
<mat-dialog-content>
<div class="row">
<div class="col-12">
<ngx-dropzone class="drop-file" (change)="selectXML($event)" [accept]="'text/xml'" [multiple]="false">
@ -20,8 +21,8 @@
<div class="col-12 d-flex justify-content-center attach-btn">
<button mat-button type="button" class="col-auto attach-file" (click)="imgFileInput.click()">
<mat-icon class="mr-2">input</mat-icon>
<span *ngIf="!hasBlueprint()">{{'GENERAL.START-NEW-DMP-DIALOG.UPLOAD-FILE' | translate}}</span>
<span *ngIf="hasBlueprint()">{{'GENERAL.START-NEW-DMP-DIALOG.REPLACE-FILE' | translate}}</span>
<span *ngIf="!hasBlueprint()">{{'DESCRIPTION-TEMPLATE-LISTING.IMPORT.UPLOAD-FILE' | translate}}</span>
<span *ngIf="hasBlueprint()">{{'DESCRIPTION-TEMPLATE-LISTING.IMPORT.REPLACE-FILE' | translate}}</span>
</button>
<input class="hidden" type="file" #imgFileInput (change)="selectXML($event)" accept="text/xml" />
</div>
@ -38,4 +39,5 @@
<button mat-button color="primary" class="next-btn" type="button" (click)="confirm()" [disabled]="!hasBlueprint()">{{ data.confirmButton }}</button>
</div>
</div>
</mat-dialog-content>
</div>

View File

@ -773,7 +773,9 @@
"UPLOAD-XML": "Import",
"UPLOAD-XML-FILE-TITLE": "Import Description Template",
"UPLOAD-XML-NAME": "Name Of Description Template",
"UPLOAD-XML-FILE-CANCEL": "Cancel"
"UPLOAD-XML-FILE-CANCEL": "Cancel",
"UPLOAD-FILE": "Upload File",
"REPLACE-FILE": "Replace File"
}
},
"DESCRIPTION-TEMPLATE-TYPE-LISTING": {