mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
improve mobile handling on layout
This commit is contained in:
parent
1eb018bb47
commit
d8567ef1f4
@ -7,7 +7,7 @@ export default class Layout extends React.PureComponent {
|
|||||||
progressBar = progressBar.configure({ parent: "html", showSpinner: false })
|
progressBar = progressBar.configure({ parent: "html", showSpinner: false })
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
layoutType: "default",
|
layoutType: app.isMobile ? "mobile" : "default",
|
||||||
renderError: null,
|
renderError: null,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,9 +51,9 @@ export default class Layout extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
if (window.app.cores.settings.get("forceMobileMode") || app.isMobile) {
|
// if (window.app.cores.settings.get("forceMobileMode") || app.isMobile) {
|
||||||
app.layout.set("mobile")
|
// app.layout.set("mobile")
|
||||||
}
|
// }
|
||||||
|
|
||||||
// register events
|
// register events
|
||||||
Object.keys(this.events).forEach((event) => {
|
Object.keys(this.events).forEach((event) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user