mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
skip centered mode for mobile
This commit is contained in:
parent
e4f1e3ed0e
commit
56d216e895
@ -112,6 +112,11 @@ export default class Layout extends React.PureComponent {
|
|||||||
toogleCenteredContent: (to) => {
|
toogleCenteredContent: (to) => {
|
||||||
const root = document.getElementById("root")
|
const root = document.getElementById("root")
|
||||||
|
|
||||||
|
if (app.isMobile) {
|
||||||
|
console.warn("Skipping centered content on mobile")
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (!root) {
|
if (!root) {
|
||||||
console.error("root not found")
|
console.error("root not found")
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user