Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(mobile): enforce new layout
Elian Doran90e3f7508a71
diff --git a/apps/client/src/services/experimental_features.ts b/apps/client/src/services/experimental_features.tsindex 62d4ebb053..b6211b4d10 100644--- a/apps/client/src/services/experimental_features.ts+++ b/apps/client/src/services/experimental_features.ts@@ -1,5 +1,6 @@import { t } from "./i18n";import options from "./options";+import { isMobile } from "./utils";export interface ExperimentalFeature {id: string;@@ -21,7 +22,7 @@ let enabledFeatures: Set<ExperimentalFeatureId> | null = null;export function isExperimentalFeatureEnabled(featureId: ExperimentalFeatureId): boolean {if (featureId === "new-layout") {- return options.is("newLayout");+ return (isMobile() || options.is("newLayout"));}return getEnabledFeatures().has(featureId);