small fix

This commit is contained in:
Daniel 2023-06-10 16:54:33 +03:30
parent 9e0b0abdba
commit dbbfeb42f7
3 changed files with 5 additions and 14 deletions

View File

@ -14,7 +14,7 @@ export default function Modal({ toggleModal, className, children }: Props) {
<div className="overflow-y-auto py-2 fixed top-0 bottom-0 right-0 left-0 bg-gray-500 bg-opacity-10 flex items-center fade-in z-30"> <div className="overflow-y-auto py-2 fixed top-0 bottom-0 right-0 left-0 bg-gray-500 bg-opacity-10 flex items-center fade-in z-30">
<ClickAwayHandler <ClickAwayHandler
onClickOutside={toggleModal} onClickOutside={toggleModal}
className={`w-fit m-auto h-[50rem] ${className}`} className={`w-fit m-auto mt-10 sm:mt-20 ${className}`}
> >
<div className="slide-up relative border-sky-100 rounded-2xl border-solid border shadow-lg p-5 bg-white"> <div className="slide-up relative border-sky-100 rounded-2xl border-solid border shadow-lg p-5 bg-white">
<div <div

View File

@ -248,10 +248,7 @@ export default function Index() {
) : null} ) : null}
{collectionInfoModal && activeCollection ? ( {collectionInfoModal && activeCollection ? (
<Modal <Modal toggleModal={toggleCollectionInfoModal}>
toggleModal={toggleCollectionInfoModal}
className="h-[35rem]"
>
<CollectionModal <CollectionModal
toggleCollectionModal={toggleCollectionInfoModal} toggleCollectionModal={toggleCollectionInfoModal}
activeCollection={activeCollection} activeCollection={activeCollection}
@ -261,10 +258,7 @@ export default function Index() {
) : null} ) : null}
{collectionMembersModal && activeCollection ? ( {collectionMembersModal && activeCollection ? (
<Modal <Modal toggleModal={toggleCollectionMembersModal}>
toggleModal={toggleCollectionMembersModal}
className="h-[35rem]"
>
<CollectionModal <CollectionModal
defaultIndex={1} defaultIndex={1}
toggleCollectionModal={toggleCollectionMembersModal} toggleCollectionModal={toggleCollectionMembersModal}
@ -275,10 +269,7 @@ export default function Index() {
) : null} ) : null}
{deleteCollectionModal && activeCollection ? ( {deleteCollectionModal && activeCollection ? (
<Modal <Modal toggleModal={toggleDeleteCollectionModal}>
toggleModal={toggleDeleteCollectionModal}
className="h-[35rem]"
>
<CollectionModal <CollectionModal
defaultIndex={2} defaultIndex={2}
toggleCollectionModal={toggleDeleteCollectionModal} toggleCollectionModal={toggleDeleteCollectionModal}

View File

@ -212,7 +212,7 @@ export default function Collections() {
</div> </div>
{collectionModal ? ( {collectionModal ? (
<Modal toggleModal={toggleCollectionModal} className="h-[35rem]"> <Modal toggleModal={toggleCollectionModal}>
<CollectionModal <CollectionModal
activeCollection={{ activeCollection={{
name: "", name: "",