Skip to content

Commit

Permalink
fix: link dialog is on top of the toolbar
Browse files Browse the repository at this point in the history
Fixes #258
  • Loading branch information
petyosi committed Dec 23, 2023
1 parent a2c9896 commit 606e0d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/MDXEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ const EditorRootElement: React.FC<{ children: React.ReactNode; className?: strin
React.useEffect(() => {
const popupContainer = document.createElement('div')
popupContainer.classList.add(styles.editorRoot)
popupContainer.classList.add(styles.popupContainer)
if (className) {
className.split(' ').forEach((c) => {
popupContainer.classList.add(c)
Expand Down
5 changes: 4 additions & 1 deletion src/styles/ui.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -1124,4 +1124,7 @@ form.multiFieldForm {
font-size: var(--text-xs);
}


.popupContainer {
position: relative;
z-index: 1;
}

0 comments on commit 606e0d7

Please sign in to comment.