Fix Incorrect viewport on mobile while loading

https://github.com/HelloZeroNet/ZeroNet/issues/2474
This commit is contained in:
canewsin 2021-11-28 01:23:52 +05:30
parent eab7fc2be4
commit a1eb6eede5
1 changed files with 4 additions and 1 deletions

View File

@ -540,7 +540,10 @@ class UiRequest(object):
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,