Skip to content

Build your personal knowledge base with Trilium Notes

style/similar notes: fix font size variation according to similarity

Adorian Doran68d21669e7bb
diff --git a/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx b/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx
index c8dc1337fe..ffac9ae7ae 100644
--- a/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx
+++ b/apps/client/src/widgets/ribbon/SimilarNotesTab.tsx
@@ -33,7 +33,7 @@ export default function SimilarNotesTab({ note }: Pick<TabContext, "note">) {
notePath={notePath}
noTnLink
style={{
- "font-size": 20 * (1 - 1 / (1 + score))
+ "font-size": (20 * (1 - 1 / (1 + score))) + "px"
}}
/>
))}