Max account decimals before trim and tooltip for whole value #1947
Conversation
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.
neat!
@@ -131,6 +140,11 @@ function FormattedVal(props: Props) { | |||
)} | |||
</T> | |||
) | |||
|
|||
if (showTooltip) { | |||
return <Tooltip render={() => unit && formatCurrencyUnit(unit, val)}> {content} </Tooltip> |
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.
should the unit
check be done in the if? because as far as i read it, if there is no unit, we would have no tooltip right?
if (showTooltip && unit) {
return <Tooltip render={() => formatCurrencyUnit(unit, val)}> {content} </Tooltip>
}
I imagine this case never present, but code is easier to understand
good |
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.
Bug found
Account balance should be responsive. By resizing the window, account pane become large enough to display all the balance digits.
How to reproduce
- Import app.json file (enclosed)
- On portfolio screen, resize app window.
Ok so base on this feedback and fact the window can resize & need to be somewhat responsive, i'm going to suggest a different implementation:
|
I think it was fixed in Accounts rework |
Type
Bug Fix, UI Polish...
Context
Account's balance was overflowing the wrapper where there are lot of decimal values in a small screen
Parts of the app affected / Test plan