Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.03k stars 2.54k forks source link

Fix styles for split preview #42231

Closed pecanoro closed 2 weeks ago

pecanoro commented 2 weeks ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/42210 PROPOSAL:

Tests / QA steps

  1. Go to any chat.

  2. Go to + > Split expense.

  3. Split a scan expense.

  4. Click on the split preview.

  5. There will be no excessive space in the split header and looks like: image

  6. Repeat the process with a manual split, it should look like: image

Offline tests

Same as QA steps

PR Author Checklist

Screenshots/Videos

Android: Native ![image](https://github.com/Expensify/App/assets/6474442/38ba91f9-3e41-48b0-b5b4-b2ae7fe7c3b3)
Android: mWeb Chrome ![image](https://github.com/Expensify/App/assets/6474442/965dce8b-910d-4d9f-ad0c-008a150d55b1) ![image](https://github.com/Expensify/App/assets/6474442/d06cc6bb-bb5d-4784-b416-7913e36fdeaf)
iOS: Native ![image](https://github.com/Expensify/App/assets/6474442/290e26ed-b1c9-42ce-9655-ebdb62f85337)
iOS: mWeb Safari ![image](https://github.com/Expensify/App/assets/6474442/166a60c0-b52f-4b5c-bce3-643bf14c84fb) ![image](https://github.com/Expensify/App/assets/6474442/2f94ec12-3dad-47f2-94a9-b0f6eb4e1602)
MacOS: Chrome / Safari ![image](https://github.com/Expensify/App/assets/6474442/efb84161-9929-4b2c-ae25-4ad10a97a8ee) ![image](https://github.com/Expensify/App/assets/6474442/192873b9-422a-49d2-9f95-d77fccb3251e)
MacOS: Desktop ![image](https://github.com/Expensify/App/assets/6474442/0202e034-8e25-4673-a0f9-692d5979658d) ![image](https://github.com/Expensify/App/assets/6474442/af55fbcf-13bd-47ee-ac9b-9b1d810e6707)
melvin-bot[bot] commented 2 weeks ago

@rushatgabhane 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]

pecanoro commented 2 weeks ago

Damn, I think it is still looking weird on mobile

pecanoro commented 2 weeks ago

styles.flexReset works on mobile but not web and desktop and the opposite for styles.flexBasisAuto

Edit: flexReset does not work well either way

Beamanator commented 2 weeks ago

Mmmmm so not a complete fix here, eh?

pecanoro commented 2 weeks ago

It works on all platforms except the native apps, so I would say let's merge this, and then the original author can find a better solution. Or find a proposal from a contirbutor

Beamanator commented 2 weeks ago

I'm down with that, does it at least make things look slightly better on native apps? If it's works, maybe ❌ but if it's same or better, yalla :shipit:

Beamanator commented 2 weeks ago

Reviewer Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
pecanoro commented 2 weeks ago

It looks the same on native, not worst, but it doesn't look terrible either

OSBotify commented 1 week ago

🚀 Deployed to staging by https://github.com/Beamanator in version: 1.4.75-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
OSBotify commented 5 days ago

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.75-1 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅