-
Notifications
You must be signed in to change notification settings - Fork 245
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
UI Bugfix Mobile: Add distance at the bottom, if there is a difference between window.innerHeight
and window.outerHeight
#1827
Conversation
✅ Deploy Preview for specter-desktop-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This currently creates huge additional space at the bottom of the tx table for me: I think it would be good to use media queries to restrict the extra spacing to mobile devices, have a look here for more on that: Sth. like this:
BTW: I could not reproduce the issue in the first place using Firefox but this depends on so much stuff besides the browser. |
See: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/ | ||
This style is used for a div at the bottom in the <main> element to create a distance at the bottom of the pages | ||
*/ | ||
.mobile-distance-element-botom { |
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.
Typo, should be bottom
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.
Done. (now)
This style is used for a div at the bottom in the <main> element to create a distance at the bottom of the pages | ||
*/ | ||
.mobile-distance-element-botom { | ||
height: mobileDistanceElementBotomHeight; /* Fallback for browsers that do not support Custom Properties */ |
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.
How is this a fallback? What would such a browser do with "mobileDistanceElementBotomHeight"?
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 removed it.
Strange. Ok. Then this difference calculation is not a good idea.
Ok, I will try the |
Also: Did you try this approach as well? Does not work for Safari for me, though, and Firefox works fine without anything for me, so can't verify whether this helps as well. |
This is where I have the idea from to use the |
…_bottom_mobile # Conflicts: # src/cryptoadvance/specter/static/styles.css
I am unsure if EDIT: I think for mobile |
Fix for #1826