[Hold for Payment] Manage cards button is not visible when viewport is ~840px
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Navigate to a workspace
- Reduce to viewport to be ~840px
Expected Result:
Button should be completely visible.
Actual Result:
Button is cropped and not completely visible.
Workaround:
No need, visual issue.
Platform:
Where is this issue occurring?
- Web
- mWeb (tablets or iPads maybe?)
Version Number: 1.0.85-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
From @vitHoracek https://expensify.slack.com/archives/C01GTK53T8Q/p1628855161330000
With the added inset for the workspace modal it seems we will need to update the styles for Manage cards box, the text and button gets out of the blue container when the viewport is ~840px. This is on current main .
Triggered auto assignment to @francoisl (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Proposal
840px is actually a tablet size. I tried to fix the issue, but it's kind of impossible with the current structure.
So, the best way to fix this is to create a condition to detect tablet sizes.
- create a new variable in src/styles/variables.js.
tabletResponsiveWidthBreakpoint: 1024
- modify src/components/withWindowDimensions.js
const isMediumScreenWidth = initialDimensions.width >= variables.mobileResponsiveWidthBreakpoint
&& initialDimensions.width <= variables.tabletResponsiveWidthBreakpoint;
- Finally pass this style
isMediumScreenWidth && styles.w100to the card content https://github.com/Expensify/App/blob/8b10c1c1a0267eb66ef8fdc6e0049f9b101836a2/src/pages/workspace/WorkspaceCardPage.js#L141-L148
Result

@kakajann I had similar findings and we were tracking this issue here https://github.com/Expensify/App/issues/4421
The current structure doesn't factor in any Tablet device dimensions.
Triggered auto assignment to @SofiedeVreese (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
@shawnborton would love your thoughts here, given the similarities to #4421 and you mentioned we don't plan on changing the breakpoint?
No need to change the breakpoints in my opinion. Just add new breakpoint to make some components responsive for tablet sizes. (i.e between 800 and 1024 pixels)
It will help us to fix current issue and for future use.
I agree with @kakajann. We should be adding a new breakpoint for tablet sizes and probably rethink on certain pages.
I think that makes sense to me, curious if anyone else from @Expensify/design agrees. To summarize, we basically have a weird set of screen widths between like 800px-1000px wide where this Expensify Card advertorial breaks down. It sounds like the actual design of the advertorial for mobile devices would look better in these cases.
sorry for the confusion, but is this the proposal? essentially having the cards layered behind the text?
I know these are different sizes, but I noticed the cards are changing size and position. Curious if there's a way to keep them more consistent with the screen below?

@megankelso if from a Design point of view you agree this is something we want to fix, then I'll push it to Upwork and we can gather more proposals and see if there are other ways to fix the issue!
I just wanted to make sure we all agree this is an issue before pushing it to Upwork.
oh I'm sorry for the misunderstanding. yes, I think it is worth fixing!
@megankelso no stress- it was a little vague in the thread so sorry for causing confusion!
Ok pushing to Upwork! https://www.upwork.com/jobs/~0104471d011b7f47f4
@kakajann please see @megankelso 's comment above, is there a way to keep things more consistent with the screenshot in her comment?
Triggered auto assignment to @timszot (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
must resize views and user constrain to update the place of button
@SofiedeVreese, @megankelso Yes, I can keep it consistent, once I add a new viewport for tablets.
@timszot would love your 2c on the above, thanks!
@kakajann I like that proposal and seems like design likes it too!
@SofiedeVreese let's get them hired!
Hey @kakajann Can you submit your proposal via Upwork so I can hire you through Upwork? Thanks!
Hi, just submitted