-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Expensify Card empty state list cuts off centered modal #46649
Fix Expensify Card empty state list cuts off centered modal #46649
Conversation
@ikevin127 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/Videos |
🎉 LGTM and tests well - the issue is fixed accordingly. I will Approve once design's team request from #46649 (comment) is addressed, since in case there will be code changes, I'd like to double-check to make sure we're aligned before merging. |
Looks like the screenshot on Mac still has the issue Shawn mentioned here. Would be good to add that top padding. Looks great on mobile though 👍 |
Instead of needing to increase the min-height, is there any way to just use padding and use the height of the centered modal portion itself as what becomes the min-height? Basically if the centered modal wasn't absolutely positioned, I feel like this wouldn't be hard to pull off? |
For sure, I can do it - what should be the value of this margin? Is 12px enough? |
I think we'd just want an inner padding of like 20px - the same thing we're doing horizontally. |
We have 32px for the empty state centered modal right now |
Ah okay, let's use the same value for whatever we do horizontally then. So 32px all around. |
That's how it looks like right now @shawnborton |
I think that's okay, but can we confirm it's the same gap used on the sides? Can you make the screen less wide so we can see? Thanks! |
Ah so the horizontal sides seem less than the top... but I actually think I like how that looks. cc @Expensify/design in case you have any other feelings there |
I actually think that looks good too. You get a little bit of a preview of the skeleton row which I think is nice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did not find an internal engineer to review this PR, trying to assign a random engineer to #46648 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
cc @francoisl as you were auto-assigned to issue as CME. |
Hmm, I think it might be worth it for the default 400 value, but this 500 is strictly connected to the selected media type in the header. So, if anyone changes it in the future, this value will probably also need to be updated. But if you think it's worth it too, then I can move it there. |
Ok that's fair, let's keep it like it is now then. Looks like there's a conflict now, can you take a look so we can merge this? Thanks! |
@francoisl conflicts resolved! |
✋ 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/francoisl in version: 9.0.18-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|
Details
This PR allows to set minHeight of Empty state centered modal to avoid cut off content.
Fixed Issues
$ #46648
PROPOSAL:
Tests
Offline tests
QA Steps
Same as above
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
MacOS: Chrome / Safari
Expensify.Card.mov