diff --git a/apps/client/src/widgets/react/NoteLink.tsx b/apps/client/src/widgets/react/NoteLink.tsx index b7f3a3409..ec3c33640 100644 --- a/apps/client/src/widgets/react/NoteLink.tsx +++ b/apps/client/src/widgets/react/NoteLink.tsx @@ -7,9 +7,10 @@ interface NoteLinkOpts { showNotePath?: boolean; style?: Record; noPreview?: boolean; + noTnLink?: boolean; } -export default function NoteLink({ notePath, showNotePath, style, noPreview }: NoteLinkOpts) { +export default function NoteLink({ notePath, showNotePath, style, noPreview, noTnLink }: NoteLinkOpts) { const stringifiedNotePath = Array.isArray(notePath) ? notePath.join("/") : notePath; const [ jqueryEl, setJqueryEl ] = useState>(); @@ -27,7 +28,9 @@ export default function NoteLink({ notePath, showNotePath, style, noPreview }: N $linkEl?.addClass("no-tooltip-preview"); } - $linkEl?.addClass("tn-link"); + if (!noTnLink) { + $linkEl?.addClass("tn-link"); + } return diff --git a/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx b/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx index b771f13bc..57299c92c 100644 --- a/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx +++ b/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx @@ -23,18 +23,24 @@ export default function SimilarNotesTab({ note }: TabContext) { }, [ note?.noteId ]); return ( -
- {similarNotes?.length ? ( -
- {similarNotes.map(({notePath, score}) => ( - - ))} -
- ) : ( - <>{t("similar_notes.no_similar_notes_found")} - )} +
+
+ {similarNotes?.length ? ( +
+ {similarNotes.map(({notePath, score}) => ( + + ))} +
+ ) : ( + <>{t("similar_notes.no_similar_notes_found")} + )} +
) } \ No newline at end of file