From a4b79a2dc9b13058e94bd64cdd532740a6f3e966 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 10 Dec 2025 22:56:29 +0200 Subject: [PATCH] fix(ribbon): content code modal hidden behind backdrop --- .../src/widgets/ribbon/BasicPropertiesTab.tsx | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) 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 }) {