Tweak logo max width on the web editor

The logo's maximum width is now dependent on the viewport height
in addition to the page width. This prevents the "Start Godot editor"
button from overflowing the page on mobile devices (although the
"Clear persistent data" and "Web editor documentation" buttons will
still overflow for now).

(cherry picked from commit 34a4ff0cef)
This commit is contained in:
Hugo Locurcio 2022-01-20 17:03:43 +01:00 committed by Rémi Verschelde
parent d0fba915dc
commit 695da68188
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -271,7 +271,7 @@
<div id="tab-loader">
<div style="color: #e0e0e0;" id="persistence">
<br />
<img src="logo.svg" alt="Godot Engine logo" width="1024" height="414" style="width: auto; height: auto; max-width: 85%; max-height: 250px" />
<img src="logo.svg" alt="Godot Engine logo" width="1024" height="414" style="width: auto; height: auto; max-width: min(85%, 50vh); max-height: 250px" />
<br />
@GODOT_VERSION@
<br />