diff --git a/resources/content-server/index.html b/resources/content-server/index.html index 2226246459..cbe3a83d2e 100644 --- a/resources/content-server/index.html +++ b/resources/content-server/index.html @@ -5,9 +5,11 @@ + + - - + +
diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index e6faf2fa5e..6c639f038c 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -62,10 +62,11 @@ def margin_elem(sd, which, id, onclick): ) if onclick: ans.addEventListener('click', onclick) - if is_ios and which is 'margin_bottom' and not /CriOS\//.test(window.navigator.userAgent): + if is_ios and which is 'margin_bottom' and not window.navigator.standalone and not /CriOS\//.test(window.navigator.userAgent): # On iOS Safari 100vh includes the size of the navbar and there is no way to # go fullscreen, so to make the bottom bar visible we add a margin to - # the bottom bar. CriOS is for Chrome on iOS. + # the bottom bar. CriOS is for Chrome on iOS. And in standalone + # (web-app mode) there is no nav bar. ans.style.marginBottom = '25px' return ans