-
-
Notifications
You must be signed in to change notification settings - Fork 106
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 page height issues on mobile #422
Conversation
@@ -98,6 +98,10 @@ table { | |||
border-spacing: 0; | |||
} | |||
|
|||
html { |
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.
Correct place for this since the other one isn't read at all
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.
Changing body to auto
fixed it on my end, I just can't find the actual source to try the change in.
I've edited it in I think... 4 files and a separate style sheet keeps getting generated somewhere I'm not accounting for.
@codeGlaze Yes that's similar to this, here the html's height is set to the default (which is auto), all the other changes are to fix the background image, without these additional changes the background would stretch across the whole page instead of over the visible screen area. |
I didn't notice a change in background with html set to 100% (useful work around for scaling iirc?) And body set to auto/default. Would that about the issues you were running into? |
Ok so I tried out setting just the body height to auto through the devtools on the live site as I think you suggested and it fixes the white region as the body now takes on the page height but the background gradient also stretches the whole page as a result of this so you would still need to fix the background. vs |
Thanks for checking it out for me. Are you on the discord? |
I'll tell you what, I'll toss all these branches on dev.dungeonmastersvault.com and everyone can hit it with their phones : ] |
Which one? I just joined the Homebrew sharing one |
That would be the one. : ] |
Alright so after much trial and error I've come up with the following: By default have no given height on the html element such that the browser itself can handle scrolling to fix the issues on mobile and use a new css class The issue is that the scrollable page needs no height in the html as otherwise we get issues during scrolling while the fullscreen pages didn't work without a set height at some parent level which was not possible due to the above... Normally you can use something like |
Let's knock the spacing down for the buttons since on mobile it still squishes them Update the sytles\core.clj and add
Right above this line: and update From:
To
Looks much better with that added |
Other than that.. Looks good. |
loading-style needs some help https://github.com/Orcpub/orcpub/blob/develop/src/cljs/orcpub/dnd/e5/views.cljs#L903 |
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.
👍
Description:
Fixes the page height issue by removing the height constrain on the
html
tag and allowing the height to be the page height. The background gradient's position has been adjusted to keep the old scrolling background.Related issue (if applicable): fixes #415
Checklist: