Skip to content

Commit

Permalink
fix: import markdown modal
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Sep 18, 2024
1 parent 32a21b4 commit 5b7431f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/header/internal/UserAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export function UserAuth() {
}}
icon={<i className="icon-[mingcute--exit-line] size-4" />}
>
Sign out
登出
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenuPortal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const ImportMarkdownButton: FC<{
导入
</StyledButton>
<DeclarativeModal
modalClassName="z-[999] pointer-events-auto"
clickOutsideToDismiss={false}
open={isOpen}
onOpenChange={onOpenChange}
Expand Down
9 changes: 7 additions & 2 deletions src/components/ui/modal/stacked/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ export const ModalInternal: Component<{
<div
className={clsxm(
'fixed inset-0 z-20 overflow-auto',
currentIsClosing && '!pointer-events-none',
currentIsClosing
? '!pointer-events-none'
: 'pointer-events-auto',

modalContainerClassName,
)}
onClick={clickOutsideToDismiss ? dismiss : undefined}
Expand All @@ -229,7 +232,9 @@ export const ModalInternal: Component<{
ref={edgeElementRef}
className={clsxm(
'center fixed inset-0 z-20 flex',
currentIsClosing && '!pointer-events-none',
currentIsClosing
? '!pointer-events-none'
: 'pointer-events-auto',
modalContainerClassName,
)}
style={zIndexStyle}
Expand Down

0 comments on commit 5b7431f

Please sign in to comment.