From 659d1b1252d177cf8d929420e37c9d49c576d806 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Tue, 9 Nov 2021 12:21:40 +0100 Subject: [PATCH] fix(console): project role ui optimization, disable resend init mail btn for reader (#2615) * fix: new role button alignment * disable init mail btn * stylelint --- .../project-role-create.component.html | 70 ++++++++++--------- .../project-role-create.component.scss | 24 ++++--- .../user-detail/user-detail.component.html | 5 +- 3 files changed, 55 insertions(+), 44 deletions(-) diff --git a/console/src/app/pages/projects/project-role-create/project-role-create.component.html b/console/src/app/pages/projects/project-role-create/project-role-create.component.html index dadbb2a28a..9f27ff1738 100644 --- a/console/src/app/pages/projects/project-role-create/project-role-create.component.html +++ b/console/src/app/pages/projects/project-role-create/project-role-create.component.html @@ -1,41 +1,45 @@
-
- + {{ 'PROJECT.ROLE.ADDTITLE' | translate }}Step + {{ currentCreateStep }} of + {{ createSteps }} +
+ +

{{'PROJECT.ROLE.ADDDESCRIPTION' | translate}}

+ +
+
+ +
+ + {{ 'PROJECT.ROLE.KEY' | translate }} + + + + {{ 'PROJECT.ROLE.DISPLAY_NAME' | translate }} + + + + {{ 'PROJECT.ROLE.GROUP' | translate }} + + +
+ - {{ 'PROJECT.ROLE.ADDTITLE' | translate }}Step - {{ currentCreateStep }} of - {{ createSteps }} +
-

{{'PROJECT.ROLE.ADDDESCRIPTION' | translate}}

- -
- - - {{ 'PROJECT.ROLE.KEY' | translate }} - - - - {{ 'PROJECT.ROLE.DISPLAY_NAME' | translate }} - - - - {{ 'PROJECT.ROLE.GROUP' | translate }} - - - - -
- -
+ +
\ No newline at end of file diff --git a/console/src/app/pages/projects/project-role-create/project-role-create.component.scss b/console/src/app/pages/projects/project-role-create/project-role-create.component.scss index 937d7c4b5d..260b3e1826 100644 --- a/console/src/app/pages/projects/project-role-create/project-role-create.component.scss +++ b/console/src/app/pages/projects/project-role-create/project-role-create.component.scss @@ -1,4 +1,3 @@ - .container { padding: 4rem 4rem 2rem 4rem; @@ -29,21 +28,28 @@ } } -.content { +.newrole-content { padding-top: 1rem; padding-bottom: 1rem; - display: flex; - margin: 0 -.5rem; - flex-wrap: wrap; border-bottom: 1px solid #ffffff20; + margin-bottom: 1rem; + display: flex; - .formfield { - margin: 0 .5rem; + .newrole { + display: grid; + grid-template-columns: 1fr; + flex: 1; - @media only screen and (max-width: 450px) { - flex-basis: 100%; + @media only screen and (min-width: 1000px) { + grid-template-columns: 1fr 1fr 1fr; + grid-gap: 1rem; } } + + button { + align-self: flex-end; + margin-bottom: 1rem; + } } .continue-button { diff --git a/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html b/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html index 12056c840d..8d1862eded 100644 --- a/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html +++ b/console/src/app/pages/users/user-detail/user-detail/user-detail.component.html @@ -65,8 +65,9 @@ -