From 0cb81572a01bf53d92f43178025e2302cfb6818e Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 24 Aug 2023 19:10:57 +0200 Subject: [PATCH] fix(Settings): layout issue with user info on mobile --- src/routes/Settings/Settings.js | 48 ++++++++------- src/routes/Settings/styles.less | 102 ++++++++++++++++++-------------- 2 files changed, 82 insertions(+), 68 deletions(-) diff --git a/src/routes/Settings/Settings.js b/src/routes/Settings/Settings.js index c90d37ef9..2a2fdf721 100644 --- a/src/routes/Settings/Settings.js +++ b/src/routes/Settings/Settings.js @@ -202,32 +202,34 @@ const Settings = () => {
-
+
-
-
-
- {profile.auth === null ? 'Anonymous user' : profile.auth.user.email} + profile.auth.user.avatar ? + `url('${profile.auth.user.avatar}')` + : + `url('${require('/images/default_avatar.png')}')` + }} + /> +
+
+
+ {profile.auth === null ? 'Anonymous user' : profile.auth.user.email} +
+ { + profile.auth !== null ? + + : + null + }
- { - profile.auth !== null ? - - : - null - }