Skip to content

Build your personal knowledge base with Trilium Notes

chore(spreadsheet): address requested change

Elian Doran8fee6b7f43a6
diff --git a/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx b/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx
index 416e76836c..17ba1c1a83 100644
--- a/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx
+++ b/apps/client/src/widgets/type_widgets/spreadsheet/Spreadsheet.tsx
@@ -124,7 +124,7 @@ function useInitializeSpreadsheet(containerRef: MutableRef<HTMLDivElement | null
if (!containerRef.current) return;
// Override Univer's hardcoded default font to match Trilium's UI font.
- const ff = getComputedStyle(document.documentElement).getPropertyValue("--detail-font-family").trim();
+ const ff = getComputedStyle(document.body).getPropertyValue("--detail-font-family").trim();
if (ff) {
DEFAULT_STYLES.ff = ff;
}