Skip to content

Build your personal knowledge base with Trilium Notes

feat(mobile): head the tree's note card with "This note"

Elian Doran92887232fb47
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index d096bc53d4..62d8a21d0e 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2860,8 +2860,9 @@
"back": "Go up one level",
"loading": "Loading...",
"empty": "This note has no children.",
- "children_count_one": "{{count}} note",
- "children_count_other": "{{count}} notes",
+ "current_note": "This note",
+ "children_count_one": "{{count}} child note",
+ "children_count_other": "{{count}} child notes",
"children_hidden": "Child notes are hidden from the tree",
"workspaces": "Workspaces",
"add_child": "Add child note",
diff --git a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.css b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.css
index e86bad68d6..8a71c8b37a 100644
--- a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.css
+++ b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.css
@@ -39,10 +39,6 @@
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 10px;
margin-inline: var(--navigator-group-inset);
-
- & + .mobile-navigator-current-tile {
- margin-block-start: var(--navigator-group-spacing);
- }
}
.mobile-navigator-workspace {
@@ -180,7 +176,6 @@
display: flex;
flex-direction: column;
gap: 10px;
- margin-block-start: 8px;
padding: 14px var(--navigator-row-padding);
cursor: pointer;
user-select: none;
diff --git a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx
index a0cb90ba71..27aa979ffb 100644
--- a/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx
+++ b/apps/client/src/widgets/mobile_widgets/MobileNoteNavigator.tsx
@@ -266,6 +266,11 @@ export default function MobileNoteNavigator() {
<div ref={scrollRef} className={clsx("mobile-navigator-scroll", showInitialLoader && "is-pending")}>
<div ref={bodyRef} className="mobile-navigator-body">
{!isHoisted && currentParentId === "root" && <WorkspaceCards />}
+ {parentNote && (
+ <div className="mobile-navigator-children-label">
+ {t("mobile_note_navigator.current_note")}
+ </div>
+ )}
{parentNote && (
<div
className={clsx("mobile-navigator-current-tile", parentColorClass, {