diff --git a/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.html b/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.html index e91ede1277..ce53d58e0f 100644 --- a/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.html @@ -15,72 +15,69 @@ limitations under the License. --> -
- -

{{ 'api-key.generate-title' | translate }}

- -
- -
- @if (isLoading$ | async) { - - } @else { -
- } -
-
-
- api-key.generate-text -
- - api-key.description - + +

{{ 'api-key.generate-title' | translate }}

+ +
+ +
+@if (isLoading$ | async) { + +} +
+
+
+ api-key.generate-text +
+ + api-key.description + + + + {{ 'api-key.enable' | translate }} + +
+ + + @for (value of expirationTimeOptions; track value) { + + {{ value | dateExpiration }} + + } + {{'api-key.expiration-time-never' | translate}} + {{'api-key.expiration-time-custom' | translate}} + - - {{ 'api-key.enable' | translate }} - -
- - - @for (value of expirationTimeOptions; track value) { - - {{ value | dateExpiration }} - - } - {{'api-key.expiration-time-never' | translate}} - {{'api-key.expiration-time-custom' | translate}} - + @if (isCustomExpirationTime()) { + + api-key.date + + + - @if (isCustomExpirationTime()) { - - api-key.date - - - - - } -
+ }
-
-
- - -
- +
+
+
+ + +
diff --git a/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.scss b/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.scss index cbed02a70e..c61a69e729 100644 --- a/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/components/api-key/components/dialog/add-api-key-dialog.component.scss @@ -15,9 +15,19 @@ */ @import '../../src/scss/constants'; -:host{ - form { - width: 700px; +:host { + display: grid; + width: 700px; + height: 100%; + max-width: 100%; + max-height: 100vh; + grid-template-rows: min-content 4px minmax(auto, 1fr) min-content; + + .mat-mdc-dialog-content { + grid-row: 3; + } + .mat-mdc-dialog-actions { + grid-row: 4; } .api-key-text { position: relative;