Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(quick_edit): address requested changes
Elian Doran5edc4abfb42d
diff --git a/apps/client/src/widgets/dialogs/PopupEditor.tsx b/apps/client/src/widgets/dialogs/PopupEditor.tsxindex 4950a41039..c2d98b5441 100644--- a/apps/client/src/widgets/dialogs/PopupEditor.tsx+++ b/apps/client/src/widgets/dialogs/PopupEditor.tsx@@ -29,6 +29,11 @@ export default function PopupEditor() {setShown(true);});+ // Add a global class to be able to handle issues with z-index due to rendering in a popup.+ useEffect(() => {+ document.body.classList.toggle("popup-editor-open", shown);+ }, [shown]);+return (<NoteContextContext.Provider value={noteContext}><DialogWrapper>@@ -52,9 +57,8 @@ export default function PopupEditor() {}export function DialogWrapper({ children }: { children: ComponentChildren }) {- const { note, ntxId } = useNoteContext();+ const { note } = useNoteContext();const wrapperRef = useRef<HTMLDivElement>(null);- const colorClass = note?.getColorClass();const [ hasTint, setHasTint ] = useState(false);// Apply the tinted-dialog class only if the custom color CSS class specifies a hue