Skip to content

Build your personal knowledge base with Trilium Notes

chore(mobile/nav): always enable new widget

Elian Doranc5093718025f
diff --git a/apps/client/src/components/main_tree_executors.ts b/apps/client/src/components/main_tree_executors.ts
index 9470dcb5eb..f4637a3702 100644
--- a/apps/client/src/components/main_tree_executors.ts
+++ b/apps/client/src/components/main_tree_executors.ts
@@ -15,8 +15,8 @@ import Component from "./component.js";
* must be at the root of the component tree.
*
* Many of these commands are invoked from the tree's context menu (desktop) and the mobile drill-down navigator's
- * context menu (standalone mobile). Because the mobile navigator doesn't contain the `NoteTreeWidget`, command
- * handlers that ought to run regardless of which UI triggered them live here instead of on the widget.
+ * context menu (mobile). Because the mobile navigator doesn't contain the `NoteTreeWidget`, command handlers
+ * that ought to run regardless of which UI triggered them live here instead of on the widget.
*/
export default class MainTreeExecutors extends Component {
/**
diff --git a/apps/client/src/layouts/mobile_layout.css b/apps/client/src/layouts/mobile_layout.css
index d07864c476..701d261ffd 100644
--- a/apps/client/src/layouts/mobile_layout.css
+++ b/apps/client/src/layouts/mobile_layout.css
@@ -27,50 +27,3 @@ kbd {
max-width: 350px;
}
-/* #region Tree (non-standalone mobile: Fancytree-based) */
-.tree-wrapper {
- max-height: 100%;
- margin-top: 0px;
- overflow-y: auto;
- contain: content;
- padding-inline-start: 10px;
-}
-
-.fancytree-title {
- margin-inline-start: 0.6em !important;
-}
-
-.fancytree-node {
- padding: 5px;
-}
-
-span.fancytree-expander {
- width: 24px !important;
- margin-inline-end: 5px;
-}
-
-.fancytree-loading span.fancytree-expander {
- width: 24px;
- height: 32px;
-}
-
-.fancytree-loading span.fancytree-expander:after {
- width: 20px;
- height: 20px;
- margin-top: 4px;
- border-width: 2px;
- border-style: solid;
-}
-
-.tree-wrapper .collapse-tree-button,
-.tree-wrapper .scroll-to-active-note-button,
-.tree-wrapper .tree-settings-button {
- position: fixed;
- margin-inline-end: 16px;
- display: none;
-}
-
-.tree-wrapper .unhoist-button {
- font-size: 200%;
-}
-/* #endregion */
diff --git a/apps/client/src/layouts/mobile_layout.tsx b/apps/client/src/layouts/mobile_layout.tsx
index c78ee13543..ef866ccf1e 100644
--- a/apps/client/src/layouts/mobile_layout.tsx
+++ b/apps/client/src/layouts/mobile_layout.tsx
@@ -22,7 +22,6 @@ import SidebarContainer from "../widgets/mobile_widgets/sidebar_container.js";
import ToggleSidebarButton from "../widgets/mobile_widgets/toggle_sidebar_button.jsx";
import NoteIconWidget from "../widgets/note_icon.jsx";
import NoteTitleWidget from "../widgets/note_title.js";
-import NoteTreeWidget from "../widgets/note_tree.js";
import NoteWrapperWidget from "../widgets/note_wrapper.js";
import NoteDetail from "../widgets/NoteDetail.jsx";
import QuickSearchWidget from "../widgets/quick_search.js";
@@ -54,7 +53,7 @@ export default class MobileLayout {
.filling()
.id("mobile-sidebar-wrapper")
.child(new QuickSearchWidget())
- .child(glob.isStandalone ? <MobileNoteNavigator /> : new NoteTreeWidget())
+ .child(<MobileNoteNavigator />)
)
)
.child(