diff --git a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx index 9b8f690bf..a7581f05a 100644 --- a/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx +++ b/apps/client/src/widgets/ribbon/BasicPropertiesTab.tsx @@ -58,14 +58,10 @@ function NoteTypeWidget({ note }: { note?: FNote | null }) { - setModalShown(false)} - size="xl" scrollable - > - - + {createPortal( + , + document.body + )} ); } @@ -144,7 +140,20 @@ export function NoteTypeDropdownContent({ currentNoteType, currentNoteMime, note setModalShown(true)}>{t("basic_properties.configure_code_notes")} - ) + ); +} + +function NoteTypeOptionsModal({ modalShown, setModalShown }: { modalShown: boolean, setModalShown: (shown: boolean) => void }) { + return ( + setModalShown(false)} + size="xl" scrollable + > + + + ); } function ProtectedNoteSwitch({ note }: { note?: FNote | null }) {