-
Notifications
You must be signed in to change notification settings - Fork 82
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
frontend: revamp send confirm dialog / view #2863
frontend: revamp send confirm dialog / view #2863
Conversation
0694e58
to
68c0880
Compare
68c0880
to
8a90c48
Compare
frontends/web/src/routes/account/send/components/confirm/confirm.module.css
Show resolved
Hide resolved
} | ||
|
||
.confirmationItemWrapper { | ||
align-items: center; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change so that the left and right numbers are both on the same text base line regardless of the fontsize (currently left value uses bigger font-size).
align-items: center; | |
align-items: baseline; |
} | ||
|
||
.totalWrapper { | ||
align-items: center; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align-items: center; | |
align-items: baseline; |
const canShowTotalFiatValue = (proposedTotal && proposedTotal.conversions) && proposedTotal.conversions[fiatUnit]; | ||
|
||
|
||
return <View fullscreen> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny style nit:
return <View fullscreen> | |
return ( | |
<View fullscreen> |
<div className={style.confirmItem}> | ||
<label>{t('button.send')}</label> | ||
<div className={style.confirmationItemWrapper}> | ||
<p className={`${style.valueOriginalLarge}`}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<p className={`${style.valueOriginalLarge}`}> | |
<p className={style.valueOriginalLarge}> |
{/*Selected UTXOs*/} | ||
{ | ||
hasSelectedUTXOs && ( | ||
<div className={[style.confirmItem].join(' ')}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<div className={[style.confirmItem].join(' ')}> | |
<div className={style.confirmItem}> |
|
||
|
||
const FiatValue = ({ baseCurrencyUnit, amount }: TFiatValueProps) => { | ||
return <p className={style.fiatValue}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style nit:
return <p className={style.fiatValue}> | |
return ( | |
<p className={style.fiatValue}> |
7a8b168
to
d3c6c7c
Compare
Thanks! PTAL @thisconnect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with design nit
|
||
.bitBoxContainer img { | ||
max-width: 220px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would just use the device image as is, without this max width, unless it is really necessary for some reason.
frontends/web/src/routes/account/send/components/confirm/confirm.module.css
Show resolved
Hide resolved
.bitBoxContainer img { | ||
padding-right: 16px; | ||
max-width: 190px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use this graphic in different places, this could make sense in all other places, but lets discuss with @jadzeidan first.
|
||
|
||
return ( | ||
<View fullscreen> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On desktop the content is a bit wide. I think we should limit to width="740px"
here (there is already width prop that we use in many places).
I came up with 740px as it looks ok and should work with German banner translation, but ofc this depends how it is translated.
I'll post a screenshot somewhere in dm..
07e5128
to
301bab5
Compare
Using `View fullscreen` instead of WaitDialog for bb02 and UI improvement in general in order to improve UX (easier to read).
301bab5
to
f1aa65d
Compare
Using
View fullscreen
instead of WaitDialog and UI improvement in general in order to improve UX (easier to read).