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
[Due for payment 2026-01-28] [$100] Fix Badge Alignment on workspace members page #79341
Version Number: v9.2.98-0 Reproducible in staging?: YES Reproducible in production?: YES If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Slack conversation (hyperlinked to channel name):
Action Performed:
Break down in numbered steps
Open /workspace/<workspaceID>/members
Have at least three members
One member should have Owner badge, second should be an Admin (click on the user, select role and choose admin) and the last one - Auditor
Expected Result:
All badges should be aligned to the right
Actual Result:
Badges are not right-aligned
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Select the officially supported platforms where the issue was reproduced:
When a child element has alignSelf set, it takes precedence over the parent's alignItems. This means wrapping the badge in a container with styles.alignItemsEnd doesn't work because the badge's own alignSelfCenter overrides it
What changes do you think we should make in order to solve the problem?
Pass badgeStyles prop with styles.alignSelfEnd to MemberRightIcon badges to override the default alignSelfCenter
What alternative solutions did you explore? (Optional)
Add a badgeStyles prop to MemberRightIcon and pass styles.alignSelfEnd from WorkspaceMembersPage to override the default alignSelfCenter only on the workspace members page
changed the title [-][$100] Fix Badge Alignment on workspace members page[/-][+][Due for payment 2026-01-28] [$100] Fix Badge Alignment on workspace members page[/+]on Jan 28, 2026
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
This is super minor style issue so we might not need regression test.
Activity
melvin-bot commentedon Jan 12, 2026
Triggered auto assignment to @lydiabarclay (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.situchan commentedon Jan 12, 2026
Assignment ✋
nyomanjyotisa commentedon Jan 12, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
Fix Badge Alignment on workspace members page
What is the root cause of that problem?
In the wide layout, the badge is wrapped in a View with only
getMinimumWidth(variables.w72)and no right alignmentApp/src/pages/workspace/WorkspaceMembersPage.tsx
Lines 412 to 418 in 25ad49c
In the narrow layout,
MemberRightIconis rendered directly without a wrapper, so it isn't right-alignedApp/src/pages/workspace/WorkspaceMembersPage.tsx
Lines 421 to 425 in 25ad49c
Then, the
Badgecomponent hasstyles.alignSelfCenterhardcoded in its wrapper styles, which overrides any parent container alignmentApp/src/components/Badge.tsx
Line 76 in 25ad49c
When a child element has
alignSelfset, it takes precedence over the parent'salignItems. This means wrapping the badge in a container withstyles.alignItemsEnddoesn't work because the badge's ownalignSelfCenteroverrides itWhat changes do you think we should make in order to solve the problem?
Pass
badgeStylesprop withstyles.alignSelfEndtoMemberRightIconbadges to override the defaultalignSelfCenterApp/src/pages/workspace/MemberRightIcon.tsx
Lines 13 to 28 in 25ad49c
What alternative solutions did you explore? (Optional)
Add a
badgeStylesprop toMemberRightIconand passstyles.alignSelfEndfromWorkspaceMembersPageto override the defaultalignSelfCenteronly on the workspace members pageApp/src/pages/workspace/MemberRightIcon.tsx
Lines 7 to 28 in 25ad49c
Then pass
badgeStyleswithstyles.alignSelfEndApp/src/pages/workspace/WorkspaceMembersPage.tsx
Lines 394 to 426 in 25ad49c
[-]Fix Badge Alignment on workspace members page[/-][+][$250] Fix Badge Alignment on workspace members page[/+]melvin-bot commentedon Jan 12, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022010690753627221946
melvin-bot commentedon Jan 12, 2026
Current assignee @situchan is eligible for the External assigner, not assigning anyone new.
situchan commentedon Jan 12, 2026
@nyomanjyotisa's alternative solution looks good.
I've gone through all usages of
MemberRightIconand this happens only on workspace members page.🎀 👀 🎀 C+ reviewed
melvin-bot commentedon Jan 12, 2026
Triggered auto assignment to @grgia, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
10 remaining items
nyomanjyotisa commentedon Jan 13, 2026
The PR is ready @situchan
lydiabarclay commentedon Jan 28, 2026
Whoops automation failed here
[-][$100] Fix Badge Alignment on workspace members page[/-][+][Due for payment 2026-01-28] [$100] Fix Badge Alignment on workspace members page[/+]lydiabarclay commentedon Jan 28, 2026
@situchan can you fill out a bz checklist please?
situchan commentedon Jan 28, 2026
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/75242/changes#r2738296049
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
This is super minor style issue so we might not need regression test.
lydiabarclay commentedon Jan 28, 2026
Payment Summary
Contributor: @nyomanjyotisa paid $250 via Upwork
Contributor+: @situchan paid $250 via Upwork
✅ No regression test needed