Add space between destination and subrate#54984
Add space between destination and subrate#54984MarioExpensify merged 10 commits intoExpensify:mainfrom
Conversation
83d24d6 to
3c39972
Compare
|
@dominictb 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] |
|
@Expensify/design Do the screenshots look good to y'all? |
|
I think they look pretty good. I don't love the column width distribution on desktop but my guess is that we're just doing even fills across all columns. One thing we could consider though is giving the amount column on desktop a fixed width so we have less of an awkward gap? |
|
Yeah I agree with Shawn. They're fine as is, but it feels a little weird to be truncating the destination where there's so much available space in the table. Taking Shawn's idea for a spin, here's the table where the amount column has a fixed width of 80px (obviously we could adjust that value if there was a more appropriate width to use): |
|
I like that a lot Danny! |
|
Dig it. Think this'll scale to mobile better too |
|
@dannymcclain Instead of adding a fixed width for the amount column, I think we can divide the column in the ratio 2:2:1. What do you think?
|
|
Can you add mobile screenshot to these suggestions too? The |
|
@dubielzyk-expensify Here is the mobile screen
|
|
Nice, the extra mocks are super helpful. I think 3:2:1 gets my vote, though I don't feel too strongly. |
|
Yes thank you for sharing all those! |
|
@dominictb I updated. |
I'm up for that too 👍 |
Reviewer Checklist
Screenshots/Videos |
|
@mkzie2 Please update all the screenshots to the latest expectations so QA can easily follow. And remove this comment here from QA Steps: |
@dominictb I updated. |
|
✋ 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/MarioExpensify in version: 9.0.87-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.87-3 🚀
|
| <View style={styles.flex3}> | ||
| <Text style={[styles.searchInputStyle, styles.alignSelfStart]}>{translate('common.destination')}</Text> | ||
| </View> | ||
| <View style={styles.flex1}> | ||
| <Text style={[styles.searchInputStyle, styles.alignItemsStart]}>{translate('common.subrate')}</Text> | ||
| <View style={styles.flex2}> | ||
| <Text style={[styles.searchInputStyle, styles.alignItemsStart, styles.pl2]}>{translate('common.subrate')}</Text> | ||
| </View> | ||
| <View style={styles.flex1}> |
There was a problem hiding this comment.
This gave the amount column too little space that in mobile the amount is rendered in two lines #55945.
We have changed the ratio to 3:2:2
















Explanation of Change
Add space between destination and subrate
Fixed Issues
$ #53928
PROPOSAL: #53928 (comment)
Tests
Precondition: Per Diem is enabled and the destination is a long text
Offline tests
Same
QA Steps
Precondition: Per Diem is enabled and the destination is a long text
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop