diff --git a/apps/client/src/widgets/type_widgets/options/appearance.tsx b/apps/client/src/widgets/type_widgets/options/appearance.tsx index e40daf3101..df46afa8ee 100644 --- a/apps/client/src/widgets/type_widgets/options/appearance.tsx +++ b/apps/client/src/widgets/type_widgets/options/appearance.tsx @@ -2,6 +2,7 @@ import "./appearance.css"; import { FontFamily, OptionNames } from "@triliumnext/commons"; import { Fragment } from "preact"; +import { createPortal } from "preact/compat"; import { useEffect, useState } from "preact/hooks"; import zoomService from "../../../components/zoom"; @@ -410,7 +411,7 @@ interface FontPickerModalProps { } function FontPickerModal({ show, onHidden, title, fontFamily, fontSize, onFontFamilyChange, onFontSizeChange, getFontFamily }: FontPickerModalProps) { - return ( + return createPortal( - + , + document.body ); }