A horizontal thumbnail is displayed for a vertical video attachment#72023
Conversation
|
Pipelines are failing in main. We just need wait main to fix them Besides, I'm having problems with native build (ios+android). I will upload the recording for them as soon as possible |
|
@ishpaul777 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] |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #72023 +/- ##
==========================================
- Coverage 35.21% 35.07% -0.14%
==========================================
Files 3297 3318 +21
Lines 108175 108880 +705
Branches 34579 34773 +194
==========================================
+ Hits 38089 38194 +105
- Misses 69898 70501 +603
+ Partials 188 185 -3
📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
| const navigation = useNavigation(); | ||
|
|
||
| useEffect(() => { | ||
| if (typeof videoUrl !== 'string' || !videoUrl || (getPlatform() !== CONST.PLATFORM.WEB && getPlatform() !== CONST.PLATFORM.DESKTOP)) { |
There was a problem hiding this comment.
NAB
| if (typeof videoUrl !== 'string' || !videoUrl || (getPlatform() !== CONST.PLATFORM.WEB && getPlatform() !== CONST.PLATFORM.DESKTOP)) { | |
| const platform = getPlatform(); | |
| const isWebOrDesktop = platform === CONST.PLATFORM.WEB || platform === CONST.PLATFORM.DESKTOP; | |
| if (typeof videoUrl !== 'string' || !videoUrl || !isWebOrDesktop)) { |
|
@lorretheboy it seems to be not working on android, can you please check that?
|
|
@ishpaul777 Hi lemme check again tmr. I am having a prblem related to build the native app. For the issue above, i think we just need to remove the platform check to solve the issue |
|
Hmm as far as I check, on native platforms, it only happens when we pick the file using
I have updated the code to fix it. However, we have no way to access the image before getting data back from BE (native platforms don't support to create DOM element like web or desktop), so that the dimensions will be wrong in loading state (it uses default ratio). It will be correct once API call is done @ishpaul777 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-10-09.at.1.20.10.AM.movAndroid: mWeb ChromeScreen.Recording.2025-10-09.at.1.33.26.AM.moviOS: HybridAppScreen.Recording.2025-10-09.at.12.38.41.AM.moviOS: mWeb SafariScreen.Recording.2025-10-08.at.12.37.44.AM.movMacOS: Chrome / SafariScreen.Recording.2025-10-08.at.12.35.09.AM.movMacOS: DesktopScreen.Recording.2025-10-09.at.2.33.24.AM.mov |
Thanks for investigation! If that’s a platform limitation, then it’s ok. The current approach makes sense given the constraints. |
amyevans
left a comment
There was a problem hiding this comment.
One quick request, otherwise looks good!
|
@amyevans I have added code comment for that. Thanks |
|
Thank you! |
|
✋ 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/amyevans in version: 9.2.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.29-5 🚀
|


Explanation of Change
Fixed Issues
$ #71072
PROPOSAL: #71072 (comment)
Tests
Offline tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
https://drive.google.com/file/d/1zTqw2Sii1ZyhMsqDh4_BUu8cWDKNeilQ/view?usp=sharing
Android: mWeb Chrome
WEBSITE.ANDROID.mov
iOS: Native
https://drive.google.com/file/d/1WyqOz3finys7KShN1RGOtpK6fq_Y2H0Y/view?usp=sharing
iOS: mWeb Safari
WEBSITE.IOS.mov
MacOS: Chrome / Safari
WEBSITE.mov
MacOS: Desktop
DESKTOP_.mov