From 8be64f49911ea0bf33782812f29e562e36a3de73 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Thu, 14 Mar 2024 14:38:09 +0100 Subject: [PATCH] fix(console): phone, email, branding dialogs (#7539) * fix: phone, email, branding dialogs * use full width for phone number * fix user create phone width * reset width --------- Co-authored-by: Elio Bischof --- ...ect-private-labeling-dialog.component.html | 6 ++-- .../user-create/user-create.component.scss | 1 - .../edit-dialog/edit-dialog.component.html | 33 ++++++++++++++----- .../edit-dialog/edit-dialog.component.scss | 32 +++++++++--------- 4 files changed, 44 insertions(+), 28 deletions(-) diff --git a/console/src/app/modules/project-private-labeling-dialog/project-private-labeling-dialog.component.html b/console/src/app/modules/project-private-labeling-dialog/project-private-labeling-dialog.component.html index 9d95cfa4dc..228ad674ac 100644 --- a/console/src/app/modules/project-private-labeling-dialog/project-private-labeling-dialog.component.html +++ b/console/src/app/modules/project-private-labeling-dialog/project-private-labeling-dialog.component.html @@ -1,6 +1,8 @@ -

{{ 'PROJECT.PAGES.PRIVATELABEL.DIALOG.TITLE' | translate }} {{ data?.number }}

-

{{ 'PROJECT.PAGES.PRIVATELABEL.DIALOG.DESCRIPTION' | translate }}

+

{{ 'PROJECT.PAGES.PRIVATELABEL.DIALOG.TITLE' | translate }} {{ data?.number }}

+
+

{{ 'PROJECT.PAGES.PRIVATELABEL.DIALOG.DESCRIPTION' | translate }}

+ {{ 'PROJECT.PAGES.PRIVATELABEL.' + selection + '.TITLE' | translate }} diff --git a/console/src/app/pages/users/user-create/user-create.component.scss b/console/src/app/pages/users/user-create/user-create.component.scss index 494828944c..113429c36c 100644 --- a/console/src/app/pages/users/user-create/user-create.component.scss +++ b/console/src/app/pages/users/user-create/user-create.component.scss @@ -56,7 +56,6 @@ } .phone-grid { - max-width: 22rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; diff --git a/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.html b/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.html index 924adb58d5..5e13504a52 100644 --- a/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.html +++ b/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.html @@ -1,18 +1,22 @@

{{ data.titleKey | translate }}

-

{{ data.descriptionKey | translate }}

-
-
- +

{{ data.descriptionKey | translate }}

+ + +
+ {{ 'USER.PROFILE.COUNTRY' | translate }} - + + + {{ selected?.countryName }} + - {{ country.countryName }} - +{{ country.countryCallingCode }} + {{ country.countryName }} + +{{ country.countryCallingCode }} @@ -26,6 +30,17 @@ />
+
+ + {{ data.labelKey | translate }} + + +
@@ -37,8 +52,8 @@
-
- diff --git a/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.scss b/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.scss index 8f5bd2358c..b8a6f3d1a8 100644 --- a/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.scss +++ b/console/src/app/pages/users/user-detail/auth-user-detail/edit-dialog/edit-dialog.component.scss @@ -1,4 +1,4 @@ -.formfield { +.edit-dialog-formfield { width: 100%; } @@ -10,34 +10,34 @@ font-size: 14px; } -.action { +.edit-dialog-actions { display: flex; - justify-content: flex-end; - - .ok-button { - margin-left: 0.5rem; - } + justify-content: space-between; button { border-radius: 0.5rem; } } -.phone-grid { - max-width: 22rem; - display: grid; - grid-template-columns: auto 1fr; - column-gap: 1rem; +.edit-dialog-form { + width: 100%; - @media only screen and (max-width: 500px) { - grid-template-columns: 1fr; + .phone-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + column-gap: 1rem; + + @media only screen and (max-width: 500px) { + grid-template-columns: 1fr; + } } } -.phone-country-name { +.edit-dialog-phone-country-name { padding: 0 0.5em; + margin-left: 1rem; } -.phone-country-code { +.edit-dialog-phone-country-code { color: darkgrey; }