Repository navigation
fix: Workspace - RBR is aligned to top of WS bar. - #42017
Conversation
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@thesahindia 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] |
|
Yeah, I agree with Jon - I would think the RBR would be right next to the three dots icon with a 8-12px gap. |
|
@dubielzyk-expensify @shawnborton, thoughts on this? IMO this looks weird. |
|
Why isn't the RBR on the left side of the three dots? And we'd need to adjust the columns so that everything lines up even when there is the GBR there. |
|
@shawnborton, I placed RBR to the right of three dots, I guess this is what we wanted according to this comment. IMO what we have currently looks good, because if we place the RBR on the right of three dots, the alignment will look weird or even if we align the three dots, the rows with now RBR will have extra margin right for no reason. |
|
Sorry for that, I totally misunderstood that. |
|
All good! |
|
@shawnborton, does this look correct, no margin right has been applied to RBR icon because the actual three dot icon width is 5px but the icon container takes 40px, so we already have
|
|
@shawnborton, I removed the fixed width and height and tried to increase the pressable area by using hitSlop, but that doesn't seem to be working on the web. The pressable area remains the same as the width and height of the element. I guess thats why we have fixed width and height of 40px. |
|
I think that's probably fine on web though? |
|
@thesahindia @shawnborton, I'm not sure what we should do here. The three-dot menu is used on many pages, and removing the fixed width and height will also affect the margins of those pages. Should we remove the margin for this specific page (workspaces list page)?
|
|
Okay, so maybe we just leave that as-is, but:
Can we move forward with that and see how it looks? Thanks! |
|
Nice! I like the first one (4px gap) the most, curious if others feel strongly. Thanks for sharing both mocks. |
I like that one too. |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
|
@thesahindia, you can start reviewing. @Expensify/design, could you please confirm one last thing? There was no margin between the workspace name and RBR before. I have added 8px margin. Does that look correct? The reason for adding 8px is that the requested container also uses the same margin. You can see that in the screenshots below for the small width and the last workspace.
|
@Krishna2323 Yeah I think it makes sense to have that margin, so what you have does look correct to me. |
|
Yup, I agree with that |
|
@Krishna2323, please update the screenshots. |
Reviewer Checklist
Screenshots/Videos |
|
Thanks Design team for the help here 🙇 Looking great |
|
We can let this out next week considering merge slush |
|
✋ 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/MonilBhavsar in version: 1.4.77-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀
|
|
|
||
| const ThreeDotMenuOrPendingIcon = ( | ||
| <View style={[isNarrow && styles.mr5]}> | ||
| <View style={[styles.flexRow]}> |
There was a problem hiding this comment.
This is not really the culprit PR of #44639.
However if we don't add limit width here and with the flex1 style of Badge wrapper View, it will cause #44639.
More detail in this proposal RCA:
#44639 (comment)






















Details
Fixed Issues
$ #41609
PROPOSAL: #41609 (comment)
Tests
Simulate failing network requestsOffline tests
Simulate failing network requestsQA Steps
Simulate failing network requestsPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
desktop_app.mp4