This commit is contained in:
Rizky 2024-08-19 21:32:46 +07:00
parent b7f31ebd24
commit 77ae9a53b6
3 changed files with 11 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -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

View File

@ -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[];
}; };