This commit is contained in:
Adorian Doran 2026-02-09 19:19:41 +02:00
parent 68d21669e7
commit 4562de8c2c
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,4 @@
.similar-notes-widget > .similar-notes-wrapper {
/* The font size of the links with the highest similarity score */
font-size: 17px;
}

View File

@ -1,3 +1,5 @@
import "./SimilarNotesTab.css";
import { SimilarNoteResponse } from "@triliumnext/commons";
import { useEffect, useState } from "preact/hooks";
@ -33,7 +35,7 @@ export default function SimilarNotesTab({ note }: Pick<TabContext, "note">) {
notePath={notePath}
noTnLink
style={{
"font-size": (20 * (1 - 1 / (1 + score))) + "px"
"font-size": (1 - 1 / (1 + score)) + "em"
}}
/>
))}