Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed minor UI issues in profile dialog #1190

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -329,4 +341,9 @@ input::placeholder {
.del-icon{
height: 1rem;
}

.profile-input{
width: 100% !important;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@ export const MobileView = ({
/>
</form>
</div>
<div className="mt-2">

<div className="mt-3 dm3-name-content">
<div className="small-text font-weight-300 grey-text">
{label}
</div>
<div className="small-text font-weight-700">{note}</div>
</div>

<div className="mt-3 mb-2">
<button
className={BUTTON_CLASS.concat(
' ',
Expand Down Expand Up @@ -134,12 +142,6 @@ export const MobileView = ({
Publish Profile
</button>
</div>
<div className="mt-3 dm3-name-content">
<div className="small-text font-weight-300 grey-text">
{label}
</div>
<div className="small-text font-weight-700">{note}</div>
</div>
</div>
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,20 @@ export const NormalView = ({
<>
<div className="d-flex ps-4 align-items-baseline">
<div className="dm3-name-container">
<div
className={
'conversation-error ms-0 mb-2 font-weight-400 show-error'
}
>
{showError === NAME_TYPE.ENS_NAME && errorMsg}
<div className="d-flex align-items-center">
<p
className="m-0
font-size-14 font-weight-500 line-height-24 title-content invisible"
>
{propertyName}
</p>
<div
className={
'conversation-error ms-0 mb-2 font-weight-400 show-error'
}
>
{showError === NAME_TYPE.ENS_NAME && errorMsg}
</div>
</div>
<div className="d-flex align-items-center">
<p
Expand All @@ -83,6 +91,7 @@ export const NormalView = ({
>
<input
data-testid="ens-name"
id="ens-name"
className={PROFILE_INPUT_FIELD_CLASS.concat(
' ',
showError === NAME_TYPE.ENS_NAME
Expand All @@ -99,7 +108,7 @@ export const NormalView = ({
</form>
</div>

<div className="mt-5 dm3-name-content">
<div className="mt-4 pt-1 dm3-name-content">
<div className="small-text font-weight-300">
{label}
</div>
Expand All @@ -108,7 +117,7 @@ export const NormalView = ({
</div>
</div>

<div className="d-flex justify-content-end me-3 mb-3">
<div className="d-flex justify-content-end me-3 mb-3 mt-4">
<button
className={BUTTON_CLASS.concat(
' ',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,21 @@ export const MobileView = ({
</p>
</form>
</div>
<div className="mt-2">

<div className="mt-3 dm3-name-content">
<div className="small-text font-weight-300 grey-text">
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.
</div>
<div className="small-text font-weight-700">
You can receive messages sent to your full DM3 username.
</div>
</div>

<div className="mt-3">
<button
className={BUTTON_CLASS.concat(
' ',
Expand Down Expand Up @@ -126,18 +140,6 @@ export const MobileView = ({
Claim & Publish
</button>
</div>
<div className="mt-3 dm3-name-content">
<div className="small-text font-weight-300 grey-text">
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.
</div>
<div className="small-text font-weight-700">
You can receive messages sent to your full DM3 username.
</div>
</div>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './../ConfigureProfile.css';
import { useContext } from 'react';
import { AuthContext } from '../../../context/AuthContext';
import { ConfigureProfileContext } from '../context/ConfigureProfileContext';
Expand Down Expand Up @@ -40,12 +41,20 @@ export const NormalView = ({
<>
<div className="d-flex ps-4 align-items-baseline">
<div className="dm3-name-container">
<div
className={
'conversation-error ms-0 mb-2 font-weight-400 show-error'
}
>
{showError === NAME_TYPE.DM3_NAME && errorMsg}
<div className="d-flex align-items-center">
<p
className="m-0
font-size-14 font-weight-500 line-height-24 title-content invisible"
>
DM3 Name
</p>
<div
className={
'conversation-error ms-0 mb-2 font-weight-400 show-error'
}
>
{showError === NAME_TYPE.DM3_NAME && errorMsg}
</div>
</div>
<div className="d-flex align-items-center">
<p
Expand All @@ -70,8 +79,8 @@ export const NormalView = ({
className={PROFILE_INPUT_FIELD_CLASS.concat(
' ',
showError === NAME_TYPE.DM3_NAME
? 'err-background'
: '',
? 'w-80 err-background'
: 'w-80 ',
)}
type="text"
value={dm3Name}
Expand All @@ -89,7 +98,7 @@ export const NormalView = ({
</form>
</div>

<div className="mt-5 dm3-name-content">
<div className="mt-4 pt-2 dm3-name-content">
<div className="small-text font-weight-300">
You can get a DM3 name for free. Please check if
your desired name is available. DM3 names are
Expand All @@ -105,7 +114,7 @@ export const NormalView = ({
</div>
</div>

<div className="d-flex justify-content-end me-3 mb-3">
<div className="profile-action-btns d-flex justify-content-end me-3 mb-3">
<button
className={BUTTON_CLASS.concat(
' ',
Expand Down
Loading