-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[24321] Large amounts are no longer cut off on smaller widths. #26280
[24321] Large amounts are no longer cut off on smaller widths. #26280
Conversation
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@eVoloshchak @Julesssss Should I add more login only for the Desktop app and only for the 350-360px interval? The above screenshot is taken for the worst case at 350px width. My mobile phone, while testing on the Chrome app, prints a width of 350px and look good as in the attached PR Screenshot. Also, from the developer tools, using custom resolutions in the 350-360px interval looks good. I would personally say to leave it as is as this is a very very edge case, happens only in the Desktop app and only in the 350-360px interval which is very low for the Desktop app. Would you agree? EDIT: This would get fixed if we keep |
I think it's fine as is. Agree this is a mega edge case and anyway the user can tap on the preview if they really need to know the exact decimal amount 👍 |
Hi @eVoloshchak, I saw that you might not be working temporarily? If so could you confirm so I can reassign in the meantime? |
Reviewer Checklist
Screenshots/Videos |
We have a merge hold temporarily |
Ok, no problem. I've updated my Screenshots/Videos with the latest version meanwhile. |
Holding this until Monday |
@DanutGavrus up to you whether you want to resolve conflicts now or on Monday. |
@Julesssss Ok, no problem! I've fixed them now in order to have it smooth on Monday and I've also updated my |
@Julesssss @pecanoro Fixed conflicts again. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.67-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.67-3 🚀
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.68-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.68-17 🚀
|
style={[ | ||
styles.moneyRequestPreviewAmount, | ||
StyleUtils.getAmountFontSizeAndLineHeight(variables.fontSizeXLarge, variables.lineHeightXXLarge, isSmallScreenWidth, windowWidth), | ||
]} |
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.
This PR caused a regression in #30275. This dynamic style caused an inconsistency of the text style for amount with the money report preview in ReportPreview
which has a fixed style for the amount.
Details
Large amounts were cut off on small width devices. Reduced the
fontSize
depending on the device width.Fixed Issues
$ #24321
PROPOSAL: #24321 (comment)
Tests
Same as QA Steps.
Offline tests
Same as QA Steps.
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
web2.mp4
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android