diff --git a/apps/client/src/widgets/collections/legacy/ListView.tsx b/apps/client/src/widgets/collections/legacy/ListView.tsx
index c9fc455b1..bb61ef04c 100644
--- a/apps/client/src/widgets/collections/legacy/ListView.tsx
+++ b/apps/client/src/widgets/collections/legacy/ListView.tsx
@@ -54,7 +54,7 @@ function NoteCard({ note, expand }: { note: FNote, expand?: boolean }) {
/>
-
+
{isExpanded && <>
diff --git a/apps/client/src/widgets/react/NoteLink.tsx b/apps/client/src/widgets/react/NoteLink.tsx
index 221b902af..09ed254d8 100644
--- a/apps/client/src/widgets/react/NoteLink.tsx
+++ b/apps/client/src/widgets/react/NoteLink.tsx
@@ -3,6 +3,7 @@ import link from "../../services/link";
import RawHtml from "./RawHtml";
interface NoteLinkOpts {
+ className?: string;
notePath: string | string[];
showNotePath?: boolean;
showNoteIcon?: boolean;
@@ -11,7 +12,7 @@ interface NoteLinkOpts {
noTnLink?: boolean;
}
-export default function NoteLink({ notePath, showNotePath, showNoteIcon, style, noPreview, noTnLink }: NoteLinkOpts) {
+export default function NoteLink({ className, notePath, showNotePath, showNoteIcon, style, noPreview, noTnLink }: NoteLinkOpts) {
const stringifiedNotePath = Array.isArray(notePath) ? notePath.join("/") : notePath;
const [ jqueryEl, setJqueryEl ] = useState>();
@@ -33,6 +34,10 @@ export default function NoteLink({ notePath, showNotePath, showNoteIcon, style,
$linkEl?.addClass("tn-link");
}
+ if (className) {
+ $linkEl?.addClass(className);
+ }
+
return
}
\ No newline at end of file
diff --git a/apps/client/src/widgets/view_widgets/list_or_grid_view.ts b/apps/client/src/widgets/view_widgets/list_or_grid_view.ts
index 857f1c6f0..28f4fd53e 100644
--- a/apps/client/src/widgets/view_widgets/list_or_grid_view.ts
+++ b/apps/client/src/widgets/view_widgets/list_or_grid_view.ts
@@ -61,7 +61,6 @@ class ListOrGridView extends ViewMode<{}> {
.append(
this.viewType === "grid"
? $('').text(await treeService.getNoteTitle(note.noteId, this.parentNote.noteId))
- : (await linkService.createLink(notePath, { showNotePath: this.showNotePath })).addClass("note-book-title")
)
.append($renderedAttributes)
);