App icon indicating copy to clipboard operation
App copied to clipboard

[Hold for Payment] Manage cards button is not visible when viewport is ~840px

Open isagoico opened this issue 5 years ago • 25 comments

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:

  1. Navigate to a workspace
  2. 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

image

Expensify/Expensify Issue URL:

View all open jobs on Upwork


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 .

isagoico avatar Aug 13 '21 23:08 isagoico

Triggered auto assignment to @francoisl (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 13 '21 23:08 MelvinBot

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.

  1. create a new variable in src/styles/variables.js.
tabletResponsiveWidthBreakpoint: 1024
  1. modify src/components/withWindowDimensions.js
const isMediumScreenWidth = initialDimensions.width >= variables.mobileResponsiveWidthBreakpoint
    && initialDimensions.width <= variables.tabletResponsiveWidthBreakpoint;
  1. Finally pass this style isMediumScreenWidth && styles.w100 to the card content https://github.com/Expensify/App/blob/8b10c1c1a0267eb66ef8fdc6e0049f9b101836a2/src/pages/workspace/WorkspaceCardPage.js#L141-L148

kakajann avatar Aug 14 '21 01:08 kakajann

Result

Screen Shot 2021-08-14 at 6 48 53 AM

kakajann avatar Aug 14 '21 01:08 kakajann

@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.

mananjadhav avatar Aug 14 '21 05:08 mananjadhav

Triggered auto assignment to @SofiedeVreese (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Aug 14 '21 17:08 MelvinBot

@shawnborton would love your thoughts here, given the similarities to #4421 and you mentioned we don't plan on changing the breakpoint?

SofiedeVreese avatar Aug 15 '21 19:08 SofiedeVreese

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.

kakajann avatar Aug 15 '21 19:08 kakajann

I agree with @kakajann. We should be adding a new breakpoint for tablet sizes and probably rethink on certain pages.

mananjadhav avatar Aug 16 '21 03:08 mananjadhav

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.

shawnborton avatar Aug 16 '21 07:08 shawnborton

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? 129406961-6f7898e7-19ed-487c-850f-dad8f3e460e8

megankelso avatar Aug 16 '21 16:08 megankelso

@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.

SofiedeVreese avatar Aug 16 '21 23:08 SofiedeVreese

oh I'm sorry for the misunderstanding. yes, I think it is worth fixing!

megankelso avatar Aug 17 '21 00:08 megankelso

@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?

SofiedeVreese avatar Aug 17 '21 00:08 SofiedeVreese

Triggered auto assignment to @timszot (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Aug 17 '21 00:08 MelvinBot

must resize views and user constrain to update the place of button

mamdouhsobhy avatar Aug 17 '21 00:08 mamdouhsobhy

@SofiedeVreese, @megankelso Yes, I can keep it consistent, once I add a new viewport for tablets.

kakajann avatar Aug 17 '21 00:08 kakajann

@timszot would love your 2c on the above, thanks!

SofiedeVreese avatar Aug 20 '21 00:08 SofiedeVreese

@kakajann I like that proposal and seems like design likes it too!

@SofiedeVreese let's get them hired!

timszot avatar Aug 20 '21 16:08 timszot

Hey @kakajann Can you submit your proposal via Upwork so I can hire you through Upwork? Thanks!

SofiedeVreese avatar Aug 21 '21 07:08 SofiedeVreese

Hi, just submitted

kakajann avatar Aug 21 '21 20:08 kakajann