Fix markdown link dialog positioning

This commit is contained in:
Dotta
2026-03-10 21:01:47 -05:00
parent b5935349ed
commit 3273692944
2 changed files with 13 additions and 18 deletions

View File

@@ -566,7 +566,6 @@ export const MarkdownEditor = forwardRef<MarkdownEditorRef, MarkdownEditorProps>
"paperclip-mdxeditor-content focus:outline-none [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_li]:list-item", "paperclip-mdxeditor-content focus:outline-none [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_li]:list-item",
contentClassName, contentClassName,
)} )}
overlayContainer={containerRef.current}
plugins={plugins} plugins={plugins}
/> />

View File

@@ -591,25 +591,21 @@ a.paperclip-project-mention-chip {
white-space: nowrap; white-space: nowrap;
} }
/* Keep MDXEditor popups above app dialogs when editor is inside a modal. */ /* Keep MDXEditor popups above app dialogs, even when they portal to <body>. */
.paperclip-mdxeditor-scope [class*="_dialogOverlay_"], [class*="_popupContainer_"] {
.paperclip-mdxeditor [class*="_dialogOverlay_"] { z-index: 81 !important;
}
[class*="_dialogOverlay_"] {
z-index: 80; z-index: 80;
} }
.paperclip-mdxeditor-scope [class*="_dialogContent_"], [class*="_dialogContent_"],
.paperclip-mdxeditor-scope [class*="_largeDialogContent_"], [class*="_largeDialogContent_"],
.paperclip-mdxeditor-scope [class*="_popoverContent_"], [class*="_popoverContent_"],
.paperclip-mdxeditor-scope [class*="_linkDialogPopoverContent_"], [class*="_linkDialogPopoverContent_"],
.paperclip-mdxeditor-scope [class*="_tableColumnEditorPopoverContent_"], [class*="_tableColumnEditorPopoverContent_"],
.paperclip-mdxeditor-scope [class*="_toolbarButtonDropdownContainer_"], [class*="_toolbarButtonDropdownContainer_"],
.paperclip-mdxeditor-scope [class*="_toolbarNodeKindSelectContainer_"], [class*="_toolbarNodeKindSelectContainer_"] {
.paperclip-mdxeditor [class*="_dialogContent_"],
.paperclip-mdxeditor [class*="_largeDialogContent_"],
.paperclip-mdxeditor [class*="_popoverContent_"],
.paperclip-mdxeditor [class*="_linkDialogPopoverContent_"],
.paperclip-mdxeditor [class*="_tableColumnEditorPopoverContent_"],
.paperclip-mdxeditor [class*="_toolbarButtonDropdownContainer_"],
.paperclip-mdxeditor [class*="_toolbarNodeKindSelectContainer_"] {
z-index: 81 !important; z-index: 81 !important;
} }