+
-
+
-
\ No newline at end of file
+
diff --git a/console/src/app/pages/users/user-detail/detail-form/detail-form.component.scss b/console/src/app/pages/users/user-detail/detail-form/detail-form.component.scss
index 819ef62d9f..407ec23d8b 100644
--- a/console/src/app/pages/users/user-detail/detail-form/detail-form.component.scss
+++ b/console/src/app/pages/users/user-detail/detail-form/detail-form.component.scss
@@ -2,31 +2,28 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
- margin: 0 -.5rem;
+ margin: 0;
+ width: 100%;
+ align-items: center;
- &.inner {
- margin: 0;
- width: 100%;
- display: flex;
- align-items: center;
+ .usernamediv {
+ margin-left: 0.5rem;
+ margin-bottom: 0.5rem;
- .usernamediv {
- margin-left: .5rem;
- margin-bottom: .5rem;
+ .formfield {
+ margin: 0;
+ flex: 1;
+ }
- .formfield {
- margin: 0;
- flex: 1;
- }
-
- .edit {
- cursor: pointer !important;
- }
+ .edit {
+ display: block;
+ margin-top: 0.5rem;
+ cursor: pointer !important;
}
}
.camera-wrapper {
- margin: 0 .5rem;
+ margin: 0 0.5rem;
position: relative;
border-radius: 50%;
padding: 0;
@@ -36,37 +33,49 @@
justify-content: center;
background: none;
cursor: pointer;
- transition: all .3s ease;
+ transition: all 0.3s ease;
+ overflow: hidden;
.i-wrapper {
- border-radius: 50%;
- background-color: #00000050;
+ display: none;
+ background-color: #00000080;
position: absolute;
- top: 0;
z-index: 1;
left: 0;
right: 0;
bottom: 0;
- display: flex;
align-items: center;
justify-content: center;
+ transition: all 0.2 ease;
i {
- font-size: 3rem;
+ font-size: 1.2rem;
+ margin: 0.25rem;
color: white;
}
}
&:hover {
.i-wrapper {
- background-color: #00000080;
+ display: inline;
}
}
}
.formfield {
flex: 1 1 33%;
- margin: 0 .5rem;
+ margin: 0 0.5rem;
+ }
+}
+
+.user-grid {
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 1rem;
+ margin: 0;
+
+ @media only screen and (min-width: 700px) {
+ grid-template-columns: 1fr 1fr;
}
}
@@ -75,6 +84,6 @@
justify-content: flex-end;
.submit-button {
- border-radius: .5rem;
+ border-radius: 0.5rem;
}
}
diff --git a/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.html b/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.html
index 669638c545..7c60010bfa 100644
--- a/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.html
+++ b/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.html
@@ -1,20 +1,26 @@
-
{{'USER.PROFILE.AVATAR.UPLOADTITLE' | translate}}
+
{{ 'USER.PROFILE.AVATAR.UPLOADTITLE' | translate }}
-
{{'USER.PROFILE.AVATAR.CURRENT' | translate}}
+
{{ 'USER.PROFILE.AVATAR.CURRENT' | translate }}
-
\ No newline at end of file
+
diff --git a/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.ts b/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.ts
index 6f808b20f7..293d42355a 100644
--- a/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.ts
+++ b/console/src/app/pages/users/user-detail/detail-form/profile-picture/profile-picture.component.ts
@@ -49,7 +49,9 @@ export class ProfilePictureComponent {
this.data.profilePic = resp.user?.human?.profile?.avatarUrl ?? '';
});
})
- .catch((error) => this.toast.showError(error));
+ .catch((error) => {
+ this.toast.showError(error.error, false);
+ });
}
public closeDialog(): void {
diff --git a/console/src/app/pages/users/user-list/user-list.module.ts b/console/src/app/pages/users/user-list/user-list.module.ts
index 969f737b1f..be86f4ddfd 100644
--- a/console/src/app/pages/users/user-list/user-list.module.ts
+++ b/console/src/app/pages/users/user-list/user-list.module.ts
@@ -18,6 +18,7 @@ import { AvatarModule } from 'src/app/modules/avatar/avatar.module';
import { CardModule } from 'src/app/modules/card/card.module';
import { FilterUserModule } from 'src/app/modules/filter-user/filter-user.module';
import { InputModule } from 'src/app/modules/input/input.module';
+import { NavToggleModule } from 'src/app/modules/nav-toggle/nav-toggle.module';
import { PaginatorModule } from 'src/app/modules/paginator/paginator.module';
import { RefreshTableModule } from 'src/app/modules/refresh-table/refresh-table.module';
import { TableActionsModule } from 'src/app/modules/table-actions/table-actions.module';
@@ -49,6 +50,7 @@ import { UserTableComponent } from './user-table/user-table.component';
TranslateModule,
FilterUserModule,
RouterModule,
+ NavToggleModule,
RefreshTableModule,
TableActionsModule,
ActionKeysModule,
diff --git a/console/src/app/pages/users/user-list/user-table/user-table.component.html b/console/src/app/pages/users/user-list/user-table/user-table.component.html
index bb83827477..a6c263f77b 100644
--- a/console/src/app/pages/users/user-list/user-table/user-table.component.html
+++ b/console/src/app/pages/users/user-list/user-table/user-table.component.html
@@ -8,13 +8,17 @@
[emitRefreshOnPreviousRoutes]="refreshOnPreviousRoutes"
[showBorder]="true"
>
-