Skip to content

Commit cab19fe

Browse files
Style/modal (#253)
* fix(modal): vertically centered modal * fix(explore): dark mode for modal
1 parent 6aeaef9 commit cab19fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/app/components/ui/Modal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Modal: FC<ModalProps> = ({
4545
initial={{ opacity: 0, y: "-40%" }}
4646
animate={{ opacity: 1, y: "0%" }}
4747
exit={{ opacity: 0, y: "40%" }}
48-
className="w-[90vw] flex flex-col h-fit max-w-2xl rounded-xl bg-white dark:bg-black border border-black/10 dark:border-white/25 p-10 shadow-xl dark:shadow-primary/50 focus:outline-none cursor-auto"
48+
className="w-[90vw] my-auto flex flex-col h-fit max-w-2xl rounded-xl bg-white dark:bg-black border border-black/10 dark:border-white/25 p-10 shadow-xl dark:shadow-primary/50 focus:outline-none cursor-auto"
4949
>
5050
<Dialog.Title className="m-0 text-2xl font-bold">
5151
{title}

frontend/app/explore/DocumentItem/DocumentData.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DocumentData = ({ documentName }: DocumentDataProps): JSX.Element => {
3131
}, [axiosInstance, documentName]);
3232

3333
return (
34-
<div className="prose">
34+
<div className="prose dark:prose-invert">
3535
<h1 className="text-bold text-3xl break-words">{documentName}</h1>
3636
<p>No. of chunks: {documents.length}</p>
3737

0 commit comments

Comments
 (0)