Fix: small gap underneath chat report header#58296
Fix: small gap underneath chat report header#58296martasudol wants to merge 9 commits intoExpensify:mainfrom
Conversation
|
I'm going to reassign this to @dukenv0307 as this is a regression from a PR they reviewed last week. |
|
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
|
Reviewing... |
|
I think we should find a better solution, we can easily see the gap in iOS Screen.Recording.2025-03-13.at.00.12.48.mov |
|
@dukenv0307 could you please retest on the newest version? |
This comment has been minimized.
This comment has been minimized.
|
Also I could have sworn we don't want the edges on the loader to be round either... they do appear slightly round? Feels like maybe some styles got reverted at some point perhaps? |
|
@shawnborton that looks reasonable to improve. I'll remove rounded edges and move it up. Update soon! |
|
Thank you! |
|
@shawnborton could you please retest it? 🙏 |
|
🚧 @shawnborton has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
Hmm one thing I am noticing is that there are times when the loader appears on both the LHN and the chat pane on desktop. I thought the idea was that the loader ONLY appears on the LHN on desktop when on the Inbox tab. @martasudol do you know if anything changed in that regard? @nkdengineer is that how you first implemented this? |
| width: '100%', | ||
| position: 'absolute', | ||
| top: 'auto', | ||
| bottom: -0.5, |
There was a problem hiding this comment.
Sorry, this should be -1px and not a half pixel value.
There was a problem hiding this comment.
The chat header has a bottom border with a height of 1px. Therefore, if we want the element to align in the middle of the border, we need to set it to -0.5px. Let me attach screenshots to show the difference.
There was a problem hiding this comment.
Yeah, understood, but I don't think we want the half pixel. I think -1px makes sense but I can't remember what we were doing before. Can you check for us and let us know?
Same. |
|
@martasudol I see that this PR has a bunch of logic changes and things like that. Could we first just fix the 2px gap we are seeing, and then you can revisit with all of these other code changes? I would love to get this fixed ASAP since it is going to appear slightly broken for all NewDot users. |
The logic for the loading bar in LHN has not been changed. Of course, we can modify this, but all the changes related to loading states (not only in this PR but also in all previous ones) are related only to report view, not LHN. As discussed with @adhorodyski, improving the loading states in LHN would be addressed in the near future. I think it's a valid point, however not related to this issue. What do you think? |
|
Hmm I have never seen it before, hence why I bring it up. Only once I used the adhoc build from this PR did I start seeing the two loaders... |
|
Maybe a better approach is to just revert whatever PR caused the gap in the first place then? |
|
|
Hmm interesting, I could have sworn we never implemented it this way. @nkdengineer can you please confirm? I'd like to get to the bottom of this one. |
@martasudol curious what you think about this comment here though ^ this way we can approach these kinds of changes with more time and patience. But right now this is going to make its way to production, as I don't think this was marked as a deploy blocker. |
Ok, makes sense. Let's do that 👌 |
|
Okay, are you able to prepare the revert? Apologies as I'm not too familiar with how that process works. Can you link the offending PR here though for posterity and I will ask internally? Thanks! |
What can I help here? |
|
No worries, Marta is on top of it. |
|
Got it. |
|
@martasudol any updates? |
|
@dukenv0307 I'm closing this PR as the issue was fixed by reverting PR causing it. |



Explanation of Change
This PR fixes the issue with gap underneath chat report header.
Fixed Issues
$#58284
Tests
Offline tests
Same as Tests.
QA Steps
Same as Tests.
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