mirror of
https://github.com/zadam/trilium.git
synced 2025-11-26 10:34:25 +01:00
chore(quick_edit): address requested changes
This commit is contained in:
parent
26f7264f3c
commit
5edc4abfb4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user