Skip to content

Build your personal knowledge base with Trilium Notes

fix(pdf): wrong icon for comment annotations

Elian Dorand100278935bd
diff --git a/apps/client/src/widgets/sidebar/pdf/PdfAnnotations.tsx b/apps/client/src/widgets/sidebar/pdf/PdfAnnotations.tsx
index 74064c2110..bc70fb5eaf 100644
--- a/apps/client/src/widgets/sidebar/pdf/PdfAnnotations.tsx
+++ b/apps/client/src/widgets/sidebar/pdf/PdfAnnotations.tsx
@@ -78,7 +78,9 @@ function PdfAnnotationItem({
annotation: PdfAnnotationInfo;
onNavigate: (annotationId: string, pageNumber: number) => void;
}) {
- const icon = TYPE_ICONS[annotation.type] ?? "bx bx-comment";
+ const icon = annotation.contents
+ ? "bx bxs-comment-detail"
+ : TYPE_ICONS[annotation.type] ?? "bx bx-comment";
return (
<div className="pdf-annotation-item" onClick={() => onNavigate(annotation.id, annotation.pageNumber)}>