From 7bfff54d3070f2b3122352ff08152c88356c7785 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Tue, 19 Mar 2024 10:47:50 +0200 Subject: [PATCH] styling changes *dmp editor --- .../dmp-blueprint-editor.component.html | 57 +++++++-------- .../dmp-blueprint-editor.component.scss | 69 +++++++++++++++++++ 2 files changed, 98 insertions(+), 28 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html index 8a674d4e8..98ee097b1 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.html @@ -91,20 +91,12 @@
-
- +
-
{{fieldIndex + 1}} -
-
- -
+
drag_indicator
-
{{'DMP-BLUEPRINT-EDITOR.FIELDS.CATEGORY' | translate}} @@ -183,6 +175,11 @@ {{field.get('required').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
+
+ +
{{'DMP-BLUEPRINT-EDITOR.FIELDS-REQUIRED' | translate}} @@ -207,21 +204,12 @@
- -
-
- {{descriptionTemplateIndex + 1}} +
+
+ {{descriptionTemplateIndex + 1}}
-
- -
-
drag_indicator
-
- -
-
+
drag_indicator
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE' | translate}} @@ -229,15 +217,15 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-LABEL' | translate}} - + {{descriptionTemplate.get('label').getError('backendError').message}} {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-MIN-MULTIPLICITY' | translate}} @@ -245,7 +233,7 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
-
+
{{'DMP-BLUEPRINT-EDITOR.FIELDS.DESCRIPTION-TEMPLATE-MAX-MULTIPLICITY' | translate}} @@ -253,7 +241,20 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}}
+
+ +
+ + +
{{section.get('descriptionTemplates').getError('backendError').message}} diff --git a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss index 4db954ac2..e7a514041 100644 --- a/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss +++ b/dmp-frontend/src/app/ui/admin/dmp-blueprint/editor/dmp-blueprint-editor.component.scss @@ -149,6 +149,7 @@ .section-field-index { width: auto; + margin-top: 0.2rem; @media (max-width: 1470px) { margin-left: 1.1rem; @@ -273,3 +274,71 @@ } } } + + +.description-fields-wrapper { + width: 100%; + margin-top: 1.0rem; + display: flex; + flex-wrap: wrap; // ?? + align-items: center; + + @media (max-width: 1470px) { + flex-direction: column; + align-items: flex-start; + } + + .description-field-index { + width: auto; + margin-top: 0.2rem; + + @media (max-width: 1470px) { + margin-left: 1.1rem; + // margin-left: 1.6rem; + } + } + + .description-field-delete { + width: auto; + @media (max-width: 1470px) { + // margin-left: 0.5rem; + } + } + + .description-field-sortable { + width: auto; + margin-top: 0.5rem; + + @media (max-width: 1470px) { + margin-top: 0; + margin-left: 0.7rem; + // margin-left: 1.2rem; + } + } + + .description-field-template { + width: 15rem; + margin-left: 0.5rem; + margin-top: 1.4rem; + + @media (max-width: 1470px) { + margin-top: 0; + margin-left: 0; + width: 100%; + } + } + + .description-field-template-label, + .description-field-template-min-multiplicity, + .description-field-template-max-multiplicity { + width: 11.0rem; + margin-left: 0.5rem; + margin-top: 1.4rem; + @media (max-width: 1470px) { + margin-top: 0; + margin-left: 0; + width: 100%; + width: 100%; + } + } +}