mirror of
https://github.com/zadam/trilium.git
synced 2026-02-15 10:14:23 +01:00
close #2137
This commit is contained in:
parent
68d21669e7
commit
4562de8c2c
4
apps/client/src/widgets/ribbon/SimilarNotesTab.css
Normal file
4
apps/client/src/widgets/ribbon/SimilarNotesTab.css
Normal 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;
|
||||
}
|
||||
@ -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"
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user