fix
This commit is contained in:
parent
b7f31ebd24
commit
77ae9a53b6
File diff suppressed because one or more lines are too long
|
|
@ -176,13 +176,8 @@ export const Root = () => {
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
let mobileCSS = "";
|
let mobileCSS = "";
|
||||||
console.log(
|
|
||||||
base.mode,
|
if (base.page.root.responsive === "mobile") {
|
||||||
!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
||||||
navigator.userAgent
|
|
||||||
)
|
|
||||||
);
|
|
||||||
if (base.mode === "mobile") {
|
|
||||||
if (
|
if (
|
||||||
!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
||||||
navigator.userAgent
|
navigator.userAgent
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ export type IRoot = {
|
||||||
id: "root";
|
id: "root";
|
||||||
type: "root";
|
type: "root";
|
||||||
id_page?: string;
|
id_page?: string;
|
||||||
|
responsive?: "mobile" | "desktop";
|
||||||
childs: ISection[];
|
childs: ISection[];
|
||||||
component_ids?: string[];
|
component_ids?: string[];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue