-
Notifications
You must be signed in to change notification settings - Fork 274
Fix long address font scaling #5746
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
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.
A few little cleanups here. We can do another round of review, or you can just fix & merge.
| if (this.state.minimumPopupModalState[pluginId]) { | ||
| if (this.state.minimumPopupModalState[pluginId] === 'NOT_YET_SHOWN') { | ||
| const popupState = this.state.minimumPopupModalState[pluginId] | ||
| if (popupState != null) { |
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.
Since the popupState === 'NOT_YET_SHOWN' test implies that popupState != null, you can just delete this line altogether.
| <EdgeText>{fioToAddress + '\n'}</EdgeText> | ||
| )} | ||
| <EdgeText numberOfLines={3}>{recipientAddress}</EdgeText> | ||
| {/* TODO: Make EdgeText component support this use case */} |
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.
Optional: We do have a component for this use-case, ParagraphText. It gets rid of the whole numberOfLines locking, and simply allows the text to flow as needed. But I see that your solution works too.
00d0a0f to
7dddb18
Compare
7dddb18 to
d8b798c
Compare
d8b798c to
183d125
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: