From b317966e47dc8aeb51debdb2c0273d3cd94a4b50 Mon Sep 17 00:00:00 2001 From: "s.teleshev" Date: Wed, 20 Dec 2023 14:44:51 +0100 Subject: [PATCH] CB-4417 useFrom revert container --- .../src/UserProfileForm/UserForm.m.css | 8 ++++ .../src/UserProfileForm/UserForm.tsx | 44 ++++++++++--------- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.m.css b/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.m.css index e3b6d1e2e9..4582cbe5f8 100644 --- a/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.m.css +++ b/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.m.css @@ -49,6 +49,14 @@ } } +.box { + display: flex; + flex-direction: column; + flex: 1; + height: 100%; + overflow: auto; +} + .contentBox { composes: theme-background-secondary theme-border-color-background from global; position: relative; diff --git a/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.tsx b/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.tsx index 4c14025f71..b2219c0215 100644 --- a/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.tsx +++ b/webapp/packages/plugin-user-profile/src/UserProfileForm/UserForm.tsx @@ -36,29 +36,31 @@ export const UserForm = observer(function UserForm({ user, state, onClose const localProvider = user.linkedAuthProviders.includes(AUTH_PROVIDER_LOCAL_ID); return styled(styles)( - -
-
-
- +
+ +
+
+
+ +
+ + + {localProvider && } + +
+
+ {onClose && ( + + )}
- - - {localProvider && } -
-
- {onClose && ( - - )} +
+ + {localProvider && }
-
-
- - {localProvider && } -
-
, + +
, ); });