tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3k stars 252 forks source link

Add view mode to hide away menu and status bars #1587

Closed jotaen4tinypilot closed 1 year ago

jotaen4tinypilot commented 1 year ago

Part of https://github.com/tiny-pilot/tinypilot/issues/728, stacked onto https://github.com/tiny-pilot/tinypilot/pull/1586.

As demonstrated and discussed in the original proof-of-concept branch, we want to hide the status bar and menu bar in the popup window via a query parameter. So by appending ?viewMode=standalone to the TinyPilot URL, this PR hides the status bar, the menu bar, and the on-screen keyboard.

We will use this in a later PR, when adding the menu item for opening a “real” popup window.

Screenshot 2023-08-23 at 18 38 09

The query parameter can also be used independent of the popup window, which e.g. allows for the iframe use-case.

Notes