Mobile controls (#262)

* added readme pt-pt

* added url/querystring deps and fix chat pos/scale

url and querystring were missing in node_modules.
chat scale option wasn't implemented and chat input was on top instead of bottom.

* added bot version text field and guiScale for small screens

text field to choose bot version. gui scale changes on small screens (slider takes no effect then). Removed unused images.

* added mobile controls

* fixed bot and chat

* mobile controls only appear on mobile or if forced

* lint fix
This commit is contained in:
KalmeMarq 2021-12-25 21:50:40 +00:00 committed by GitHub
parent 8cbc95b5ef
commit 1b08956d10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 284 additions and 30 deletions

View file

@ -42,6 +42,12 @@ const commonCss = css`
}
`
/** @returns {boolean} */
function isMobile () {
const m = require('ismobilejs').default()
return m.any
}
/**
* @param {string} url
*/
@ -60,6 +66,7 @@ function displayScreen (prev, next) {
export {
commonCss,
isMobile,
openURL,
displayScreen
}