diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx
index 5af9caabe..c3ec93504 100644
--- a/apps/client/src/widgets/Breadcrumb.tsx
+++ b/apps/client/src/widgets/Breadcrumb.tsx
@@ -38,7 +38,7 @@ export default function Breadcrumb() {
{notePath.slice(-FINAL_ITEMS).map((item, index) => (
-
+
))}
>
@@ -47,7 +47,7 @@ export default function Breadcrumb() {
{index === 0
?
- :
+ :
}
{(index < notePath.length - 1 || note?.hasChildren()) &&
}
@@ -76,14 +76,11 @@ function BreadcrumbRoot({ noteContext }: { noteContext: NoteContext | undefined
);
}
-function BreadcrumbItem({ notePath, activeNotePath }: { notePath: string, activeNotePath: string }) {
- const isRootNote = (notePath === "root");
+function BreadcrumbItem({ notePath }: { notePath: string }) {
return (
);
}
@@ -104,14 +101,13 @@ function BreadcrumbSeparator({ notePath, noteContext, activeNotePath }: { notePa
function BreadcrumbSeparatorDropdownContent({ notePath, noteContext, activeNotePath }: { notePath: string, activeNotePath: string, noteContext: NoteContext | undefined }) {
const notePathComponents = notePath.split("/");
- const notePathPrefix = notePathComponents.join("/");
const parentNoteId = notePathComponents.at(-1);
const childNotes = useChildNotes(parentNoteId);
return (
-
+
{childNotes.map((note) => {
- const childNotePath = `${notePathPrefix}/${note.noteId}`;
+ const childNotePath = `${notePath}/${note.noteId}`;
return -
-
+
{items.map((notePath) => {
const notePathComponents = notePath.split("/");
const noteId = notePathComponents[notePathComponents.length - 1];
diff --git a/apps/client/src/widgets/containers/content_header.ts b/apps/client/src/widgets/containers/content_header.ts
index 17ec4651f..32b2d13a4 100644
--- a/apps/client/src/widgets/containers/content_header.ts
+++ b/apps/client/src/widgets/containers/content_header.ts
@@ -49,9 +49,8 @@ export default class ContentHeader extends Container {
if (hasMovedEnough) {
this.setFloating(isScrollingUp);
- this.previousScrollTop = currentScrollTop;
}
-
+ this.previousScrollTop = currentScrollTop;
this.updateSafeMargin();
}