mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 12:25:37 +02:00
fix(options/appearance): font modal styles are affected
This commit is contained in:
@@ -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(
|
||||
<Modal
|
||||
className="font-picker-modal"
|
||||
title={title}
|
||||
@@ -470,7 +471,8 @@ function FontPickerModal({ show, onHidden, title, fontFamily, fontSize, onFontFa
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Modal>
|
||||
</Modal>,
|
||||
document.body
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user