From 3e58f2c6300af9c72dcd42cb88e95965aad3439b Mon Sep 17 00:00:00 2001 From: Bhupesh-MS Date: Fri, 27 Sep 2024 14:16:13 +0530 Subject: [PATCH] fixed minor UI issues in profile dialog --- .../ConfigureProfile/ConfigureProfile.css | 19 +++++++++++- .../ConfigureProfile/chain/MobileView.tsx | 16 +++++----- .../ConfigureProfile/chain/NormalView.tsx | 25 +++++++++++----- .../ConfigureProfile/dm3Names/MobileView.tsx | 28 +++++++++--------- .../ConfigureProfile/dm3Names/NormalView.tsx | 29 ++++++++++++------- 5 files changed, 78 insertions(+), 39 deletions(-) diff --git a/packages/messenger-widget/src/components/ConfigureProfile/ConfigureProfile.css b/packages/messenger-widget/src/components/ConfigureProfile/ConfigureProfile.css index 0dd59bceb..9e6ce861c 100644 --- a/packages/messenger-widget/src/components/ConfigureProfile/ConfigureProfile.css +++ b/packages/messenger-widget/src/components/ConfigureProfile/ConfigureProfile.css @@ -225,7 +225,19 @@ input::placeholder { } .ens-components-container{ padding: 1rem; - } + } + .profile-action-btns { + margin-top: 1rem !important; + } + .dm3-name-container { + width: 100%; + } +} + +@media only screen and (max-width: 950px) { + #ens-name{ + width: 90% !important; + } } @media only screen and (max-width: 800px) { @@ -329,4 +341,9 @@ input::placeholder { .del-icon{ height: 1rem; } + + .profile-input{ + width: 100% !important; + } + } diff --git a/packages/messenger-widget/src/components/ConfigureProfile/chain/MobileView.tsx b/packages/messenger-widget/src/components/ConfigureProfile/chain/MobileView.tsx index 184ca6d24..7b0535d0a 100644 --- a/packages/messenger-widget/src/components/ConfigureProfile/chain/MobileView.tsx +++ b/packages/messenger-widget/src/components/ConfigureProfile/chain/MobileView.tsx @@ -98,7 +98,15 @@ export const MobileView = ({ /> -
+ +
+
+ {label} +
+
{note}
+
+ +
-
-
- {label} -
-
{note}
-
diff --git a/packages/messenger-widget/src/components/ConfigureProfile/chain/NormalView.tsx b/packages/messenger-widget/src/components/ConfigureProfile/chain/NormalView.tsx index 13f7ac671..2a0c9d6fe 100644 --- a/packages/messenger-widget/src/components/ConfigureProfile/chain/NormalView.tsx +++ b/packages/messenger-widget/src/components/ConfigureProfile/chain/NormalView.tsx @@ -58,12 +58,20 @@ export const NormalView = ({ <>
-
- {showError === NAME_TYPE.ENS_NAME && errorMsg} +
+

+ {propertyName} +

+
+ {showError === NAME_TYPE.ENS_NAME && errorMsg} +

-
+
{label}
@@ -108,7 +117,7 @@ export const NormalView = ({
-
+
-
+ +
+
+ You can get a DM3 name for free. Please check if your + desired name is available. DM3 names are created and + managed on Layer2 (e.g. Optimism). Small transaction + costs will apply for setting the profile and + administration. +
+
+ You can receive messages sent to your full DM3 username. +
+
+ +
-
-
- You can get a DM3 name for free. Please check if your - desired name is available. DM3 names are created and - managed on Layer2 (e.g. Optimism). Small transaction - costs will apply for setting the profile and - administration. -
-
- You can receive messages sent to your full DM3 username. -
-
); diff --git a/packages/messenger-widget/src/components/ConfigureProfile/dm3Names/NormalView.tsx b/packages/messenger-widget/src/components/ConfigureProfile/dm3Names/NormalView.tsx index 58c623e89..c11ab3acd 100644 --- a/packages/messenger-widget/src/components/ConfigureProfile/dm3Names/NormalView.tsx +++ b/packages/messenger-widget/src/components/ConfigureProfile/dm3Names/NormalView.tsx @@ -1,3 +1,4 @@ +import './../ConfigureProfile.css'; import { useContext } from 'react'; import { AuthContext } from '../../../context/AuthContext'; import { ConfigureProfileContext } from '../context/ConfigureProfileContext'; @@ -40,12 +41,20 @@ export const NormalView = ({ <>
-
- {showError === NAME_TYPE.DM3_NAME && errorMsg} +
+

+ DM3 Name +

+
+ {showError === NAME_TYPE.DM3_NAME && errorMsg} +

-
+
You can get a DM3 name for free. Please check if your desired name is available. DM3 names are @@ -105,7 +114,7 @@ export const NormalView = ({
-
+