Fix RBR indicator vertical alignment in narrow workspace list#84440
Fix RBR indicator vertical alignment in narrow workspace list#84440marcochavezf merged 2 commits intomainfrom
Conversation
The workspaceListRBR style (marginTop: 10, flexDirection: column) was causing vertical misalignment of the RBR indicator in workspace list rows at narrow viewport widths (< 1024px). After PR #84124 moved the ThreeDotsSection outside PressableWithoutFeedback, the marginTop offset no longer aligns with the workspace name row. The parent Views already have alignItemsCenter for proper vertical centering. Co-authored-by: Marco Chávez <marcochavezf@users.noreply.github.com>
|
@mananjadhav 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: mWeb Safari |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@MelvinBot can you also fix that? Production behavior:
|
…layout The Animated.View container only applied gap5 in wide mode, leaving no horizontal spacing between the Default badge and the green/red indicator in narrow layout. Use gap2 (8px) in narrow mode for proper separation. Co-authored-by: Aimane Chnaif <aimane-chnaif@users.noreply.github.com>
|
@FitseTLT @marcochavezf One of you needs to 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] |
|
Fixed the spacing between the Default badge and the brick road indicator in narrow layout. Root cause: The Fix: Changed |
|
🚧 @marcochavezf has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Fix RBR indicator vertical alignment in narrow workspace list (cherry picked from commit b988e6a) (cherry-picked to staging by blimpich)
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.3.32-3 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.3.32-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/blimpich in version: 9.3.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.33-5 🚀
|






Explanation of Change
When the browser window is narrower than 1024 pixels, the
WorkspacesListRowcomponent switches to a narrow layout. After PR #84124 moved theThreeDotsSection(containing the RBR indicator) outsidePressableWithoutFeedbackinto a separate sibling<View>, theworkspaceListRBRstyle (which addsmarginTop: 10andflexDirection: 'column') became inappropriate for the new container structure, causing the RBR dot to be pushed down and vertically misaligned.This PR removes the conditional application of
styles.workspaceListRBRfrom the RBR icon's container (line 230). The container only has one child (BrickRoadIndicatorIcon), so the column direction and margin are unnecessary. The parent Views already havealignItemsCenterwhich correctly handles vertical centering.The shared
workspaceListRBRstyle definition inindex.tsis left unchanged since it's also used byDomainsListRow.tsx.Fixed Issues
$ #84426
PROPOSAL: #84426 (comment)
Tests
Offline tests
N/A - This is a CSS-only change that doesn't affect offline behavior.
QA Steps
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))npm run compress-svg)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
Web: Chrome (900px narrow layout)
Tested at 900px viewport width. The RBR indicator red dot is vertically centered with the workspace name text and avatar (both at Y=124px vertical center). The
workspaceListRBRstyle (marginTop: 10, flexDirection: column) is no longer applied, and the container correctly uses onlyflexRow+alignItemsCenterfor proper centering.Android: Native
N/A - CSS-only change, no platform-specific behavior.
Android: mWeb Chrome
N/A - CSS-only change, no platform-specific behavior.
iOS: Native
N/A - CSS-only change, no platform-specific behavior.
iOS: mWeb Safari
N/A - CSS-only change, no platform-specific behavior.
MacOS: Chrome / Safari