Skip to content

Commit

Permalink
Fix Incorrect viewport on mobile while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
canewsin committed Nov 27, 2021
1 parent eab7fc2 commit a1eb6ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Ui/UiRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,10 @@ def renderWrapper(self, site, path, inner_path, title, extra_headers, show_loadi

if show_loadingscreen is None:
show_loadingscreen = not site.storage.isFile(file_inner_path)


if show_loadingscreen:
meta_tags += '<meta name="viewport" id="viewport" content="width=device-width, initial-scale=0.8">';

return self.render(
"src/Ui/template/wrapper.html",
server_url=server_url,
Expand Down

0 comments on commit a1eb6ee

Please sign in to comment.