Skip to content

Commit

Permalink
Fix browse modal z-index (ShokoAnime#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Apr 14, 2024
1 parent 921eac6 commit 10e52ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Dialogs/BrowseFolderModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ function BrowseFolderModal(props: Props) {
onRequestClose={() => handleClose()}
header="Select Import Folder"
size="sm"
overlayClassName="!z-[90]"
>
<div className="rounded border border-panel-border bg-panel-input p-4">
<TreeView />
Expand Down
4 changes: 3 additions & 1 deletion src/components/Panels/ModalPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type Props = {
className?: string;
onRequestClose?: () => void;
onAfterOpen?: () => void;
overlayClassName?: string;
};

const sizeClass = {
Expand All @@ -32,6 +33,7 @@ function ModalPanel(props: Props) {
noPadding,
onAfterOpen,
onRequestClose,
overlayClassName,
show,
size,
subHeader,
Expand All @@ -44,7 +46,7 @@ function ModalPanel(props: Props) {
return (
<Modal
isOpen={show}
overlayClassName="fixed inset-0 bg-black/50 z-[80]"
overlayClassName={cx('fixed inset-0 bg-black/50 z-[80]', overlayClassName)}
className="mt-10 flex h-full items-center justify-center"
onAfterOpen={onAfterOpen}
closeTimeoutMS={150}
Expand Down

0 comments on commit 10e52ae

Please sign in to comment.