Skip to content
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: in app guides orientation on ipad #1055

Conversation

bryce-mcmath
Copy link
Contributor

Summary of Changes

Potential fix for the orientation issues the in app guides have on ipads

Related Issues

N/A

Pull Request Checklist

Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.

  • All commits contain a DCO Signed-off-by line (we use the DCO GitHub app to enforce this);
  • Updated LICENSE-3RD-PARTY.md for any added dependencies or vendored components;
  • Updated documentation as needed for changed code and new or modified features;
  • Added sufficient tests so that overall code coverage is not reduced.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Pro Tip 🤓

  • Read our contribution guide at least once; it will save you a few review cycles!
  • Your PR will likely not be reviewed until all the above boxes are checked and all automated tests have passed.

PR template adapted from the Python attrs project.

Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4f26617) 61.50% compared to head (94ddc0b) 61.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1055      +/-   ##
==========================================
+ Coverage   61.50%   61.52%   +0.02%     
==========================================
  Files         170      170              
  Lines        5453     5456       +3     
  Branches     1570     1570              
==========================================
+ Hits         3354     3357       +3     
  Misses       2075     2075              
  Partials       24       24              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bryce-mcmath bryce-mcmath marked this pull request as ready for review January 2, 2024 23:50
@bryce-mcmath bryce-mcmath requested a review from a team as a code owner January 2, 2024 23:50
@bryce-mcmath bryce-mcmath enabled auto-merge (squash) January 2, 2024 23:51
@@ -52,7 +52,7 @@ export const TourOverlay = (props: TourOverlayProps) => {
const gapBetweenSpotAndTooltip = 50
// if origin spot (ie. no spotlight)
if (spot.x === 0 && spot.y === 0) {
const top = windowHeight / 5
const top = windowHeight / 6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic number? Able to define as a const like you do for 50 above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made the variable name more descriptive and added a comment above it. I only use it in one place and it is just some relative spacing of one sixth the screen height so that the tooltip doesn't start at the very top of the screen. I'm not sure what I was name the six if I made it a const. Hopefully the descriptive var name and comment is enough

@bryce-mcmath bryce-mcmath requested a review from jleach January 3, 2024 00:42
@bryce-mcmath bryce-mcmath merged commit 79c1e53 into openwallet-foundation:main Jan 3, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants