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:
parent
8cbc95b5ef
commit
1b08956d10
6 changed files with 284 additions and 30 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue