You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] Web - Split bill icons are aligned to the left #22993
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.40-5 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
Hello, from last 2 days I've been working on some of the issues but no matter how quickly I resolve them or send the proposal. Somehow, I've never assigned the issue formally.
Can some guide, what's the issue?
📣 @aditya-ragi! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
My proposal here fixes this issue, reposting for visibility
Proposal
Please re-state the problem that we are trying to solve in this issue.
We want workspace icons to be aligned to right.
What is the root cause of that problem?
We do a different kind of width calculation when there are more than 4 icons, but at a single time we only display 4 icons. The extra width moves the icons to left.
What changes do you think we should make in order to solve the problem?
We should update the width calculation here. Since we only display a max of 4 icons, we can remove the length calculation and use 4 directly (which comes from props.maxAvatarsInRow), and simplify this whole block with this condition
Also, currently, we are calculating the width, as a workaround, which is also a part of the problem in this issue.
@stitesExpensify I think the width was set as a workaround for the issue described in my proposal (the 2nd issue)
We are using left for positioning/shifting avatars but the PressableWithoutFeedback itself is not shifted, which causes it to be clickable in both the original and shifted positions.
If we use margin-left instead, we can remove the width, which may prevent any future issues.
What changes do you think we should make in order to solve the problem?
Use margin-left instead of left for positioning the avatar.
// in getHorizontalStackedAvatarStyle-left: -(overlapSize*index)+marginLeft: index>0 ? -overlapSize : 0// in getHorizontalStackedOverlayAvatarStyle-left: -(oneAvatarSize.width*2+oneAvatarBorderWidth*2)+marginLeft: -(oneAvatarSize.width+oneAvatarBorderWidth*2)
We should also need to remove the width, as we don't need it anymore, because this proposal also removes the need for the workaround as it fixes the issue in the root, and removing it may prevent future issues like this.
I've already made proposals in issue #22632 and #22685 which also has the same exact root cause as this one, implementing any one of the proposals would solve all these 3 issues.
Hi @Santhosh-Sellavel - we've had a few comments stating that this issue has the same root cause as a few others. Could you check this out, and let us know if this is the case? If so, should we wait on a PR from another issue to resolve this one?
Activity
melvin-bot commentedon Jul 17, 2023
Triggered auto assignment to @jliexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 17, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)Jahanzaib00 commentedon Jul 17, 2023
The issue is due to the flexbox property which was aligning the items to the right.
Jahanzaib00 commentedon Jul 17, 2023
Hello, from last 2 days I've been working on some of the issues but no matter how quickly I resolve them or send the proposal. Somehow, I've never assigned the issue formally.
Can some guide, what's the issue?
huzaifa-99 commentedon Jul 17, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
We want the multiple avatars of IOUPreview to be right-aligned
What is the root cause of that problem?
Currently we are not apply align styles to the MultipleAvatars container view
What changes do you think we should make in order to solve the problem?
We need to apply align styles to
styles.iouPreviewBoxAvatarWhat alternative solutions did you explore? (Optional)
n/a
jayeshmangwani commentedon Jul 17, 2023
The same root cause as this #22632 issue
cc: @jliexpensify
adityaaa-r commentedon Jul 17, 2023
@jayeshmangwani does this mean the issue is closed and don't need any work?
melvin-bot commentedon Jul 17, 2023
📣 @aditya-ragi! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
huzaifa-99 commentedon Jul 17, 2023
My proposal here fixes this issue, reposting for visibility
Proposal
Please re-state the problem that we are trying to solve in this issue.
We want workspace icons to be aligned to right.
What is the root cause of that problem?
We do a different kind of width calculation when there are more than 4 icons, but at a single time we only display 4 icons. The extra width moves the icons to left.
App/src/components/MultipleAvatars.js
Lines 142 to 145 in 6e5b07c
What changes do you think we should make in order to solve the problem?
We should update the width calculation here. Since we only display a max of 4 icons, we can remove the length calculation and use 4 directly (which comes from
props.maxAvatarsInRow), and simplify this whole block with this conditionWhat alternative solutions did you explore? (Optional)
N/A
DrLoopFall commentedon Jul 17, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Split bill icons are not aligned properly
What is the root cause of that problem?
We are using
leftfor positioning/shifting avatars, which causes it to use more space than required.App/src/styles/StyleUtils.js
Line 906 in 702d8e2
App/src/styles/StyleUtils.js
Line 923 in 702d8e2
Also, currently, we are calculating the width, as a workaround, which is also a part of the problem in this issue.
App/src/components/MultipleAvatars.js
Lines 138 to 144 in 702d8e2
What changes do you think we should make in order to solve the problem?
Use
margin-leftinstead ofleftfor positioning the avatar.We should also need to remove the width, as we don't need it anymore, because this proposal also removes the need for the workaround as it fixes the issue in the root, and removing it may prevent future issues like this.
App/src/components/MultipleAvatars.js
Lines 138 to 144 in 702d8e2
DrLoopFall commentedon Jul 17, 2023
I've already made proposals in issue #22632 and #22685 which also has the same exact root cause as this one, implementing any one of the proposals would solve all these 3 issues.
Also, I've made a proposal above just in case.
@puneetlath please have a look here also.
[-]Web - Split bill icons are aligned to the left[/-][+][$1000] Web - Split bill icons are aligned to the left[/+]melvin-bot commentedon Jul 17, 2023
Job added to Upwork: https://www.upwork.com/jobs/~016faf5a12cb59c166
melvin-bot commentedon Jul 17, 2023
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 17, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (
External)jliexpensify commentedon Jul 17, 2023
Hi @Santhosh-Sellavel - we've had a few comments stating that this issue has the same root cause as a few others. Could you check this out, and let us know if this is the case? If so, should we wait on a PR from another issue to resolve this one?
jliexpensify commentedon Jul 20, 2023
Bump @Santhosh-Sellavel !
Santhosh-Sellavel commentedon Jul 20, 2023
Missed this one somehow!
Santhosh-Sellavel commentedon Jul 20, 2023
@jliexpensify This seems like a dupe of #22632 & the same RC.
We can close this one straightaway, and nothing is due here!