mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +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) => {
|
||||
const root = document.getElementById("root")
|
||||
|
||||
if (app.isMobile) {
|
||||
console.warn("Skipping centered content on mobile")
|
||||
return false
|
||||
}
|
||||
|
||||
if (!root) {
|
||||
console.error("root not found")
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user