-
Notifications
You must be signed in to change notification settings - Fork 153
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
fix: in app guides orientation on ipad #1055
Conversation
Signed-off-by: Bryce McMath <[email protected]>
Signed-off-by: Bryce McMath <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
Signed-off-by: Bryce McMath <[email protected]>
@@ -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 |
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.
Magic number? Able to define as a const like you do for 50 above?
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.
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
Signed-off-by: Bryce McMath <[email protected]>
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.
Signed-off-by
line (we use the DCO GitHub app to enforce this);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 🤓
PR template adapted from the Python attrs project.