Skip to content

Build your personal knowledge base with Trilium Notes

fix(ocr): text displayed in monospace

Elian Doran010230645cba
diff --git a/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.css b/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.css
index adfb9e6057..48fdb8a35a 100644
--- a/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.css
+++ b/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.css
@@ -19,8 +19,6 @@
.text-representation-content {
white-space: pre-wrap;
- font-family: var(--detail-text-font-family);
- font-size: var(--detail-text-font-size);
line-height: 1.6;
border: 1px solid var(--main-border-color);
border-radius: 4px;
diff --git a/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx b/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx
index 971afa69a2..3e761c0695 100644
--- a/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx
+++ b/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx
@@ -82,9 +82,9 @@ export default function ReadOnlyTextRepresentation({ note }: TypeWidgetProps) {
{state.kind === "loaded" && (
<>
- <pre className="text-representation-content">
+ <div className="text-representation-content">
{state.text}
- </pre>
+ </div>
{state.extractedAt && (
<div className="text-representation-meta">
{t("ocr.extracted_on", { date: formatDateTime(new Date(state.extractedAt)) })}