diff --git a/frontend/src/About.tsx b/frontend/src/About.tsx index 13d18a25..24da8134 100644 --- a/frontend/src/About.tsx +++ b/frontend/src/About.tsx @@ -4,7 +4,7 @@ export default function About() { return (
-
+

About DocsGPT

🦖

diff --git a/frontend/src/Modal/index.tsx b/frontend/src/Modal/index.tsx index bed32181..ff3ed075 100644 --- a/frontend/src/Modal/index.tsx +++ b/frontend/src/Modal/index.tsx @@ -17,11 +17,11 @@ const Modal = (props: ModalProps) => { } absolute z-30 h-screen w-screen bg-gray-alpha`} > {props.render()} -
+
diff --git a/frontend/src/Navigation.tsx b/frontend/src/Navigation.tsx index b114ee94..c5488a50 100644 --- a/frontend/src/Navigation.tsx +++ b/frontend/src/Navigation.tsx @@ -11,7 +11,6 @@ import Link from './assets/link.svg'; import UploadIcon from './assets/upload.svg'; import { ActiveState } from './models/misc'; import APIKeyModal from './preferences/APIKeyModal'; -import SelectDocsModal from './preferences/SelectDocsModal'; import { useDispatch, useSelector } from 'react-redux'; import { selectApiKeyStatus, @@ -30,6 +29,7 @@ import { import { useOutsideAlerter } from './hooks'; import Upload from './upload/Upload'; import { Doc, getConversations } from './preferences/preferenceApi'; +import SelectDocsModal from './preferences/SelectDocsModal'; export default function Navigation({ navState, @@ -180,10 +180,10 @@ export default function Navigation({ className={({ isActive }) => `${ isActive && conversationId === null ? 'bg-gray-3000' : '' - } my-auto mx-4 mt-4 flex h-12 cursor-pointer gap-4 rounded-md hover:bg-gray-100` + } my-auto mx-4 mt-4 flex h-12 cursor-pointer gap-4 rounded-3xl hover:bg-gray-100` } > - +

New Chat

@@ -195,7 +195,7 @@ export default function Navigation({ onClick={() => { handleConversationClick(conversation.id); }} - className={`my-auto mx-4 mt-4 flex h-12 cursor-pointer items-center justify-between gap-4 rounded-md hover:bg-gray-100 ${ + className={`my-auto mx-4 mt-4 flex h-12 cursor-pointer items-center justify-between gap-4 rounded-3xl hover:bg-gray-100 ${ conversationId === conversation.id ? 'bg-gray-100' : '' }`} > @@ -228,7 +228,7 @@ export default function Navigation({
setIsDocsListOpen(!isDocsListOpen)} > {selectedDocs && ( @@ -241,7 +241,7 @@ export default function Navigation({ alt="arrow" className={`${ isDocsListOpen ? 'rotate-0' : 'rotate-180' - } mr-3 w-3 transition-all`} + } ml-auto mr-3 w-3 transition-all`} />
{ setApiKeyModalState('ACTIVE'); }} @@ -308,7 +308,7 @@ export default function Navigation({ - `my-auto mx-4 flex h-12 cursor-pointer gap-4 rounded-md hover:bg-gray-100 ${ + `my-auto mx-4 flex h-12 cursor-pointer gap-4 rounded-3xl hover:bg-gray-100 ${ isActive ? 'bg-gray-3000' : '' }` } @@ -321,7 +321,7 @@ export default function Navigation({ href="https://discord.gg/WHJdfbQDR4" target="_blank" rel="noreferrer" - className="my-auto mx-4 flex h-12 cursor-pointer gap-4 rounded-md hover:bg-gray-100" + className="my-auto mx-4 flex h-12 cursor-pointer gap-4 rounded-3xl hover:bg-gray-100" > link

Discord

@@ -331,7 +331,7 @@ export default function Navigation({ href="https://github.com/arc53/DocsGPT" target="_blank" rel="noreferrer" - className="my-auto mx-4 flex h-12 cursor-pointer gap-4 rounded-md hover:bg-gray-100" + className="my-auto mx-4 flex h-12 cursor-pointer gap-4 rounded-3xl hover:bg-gray-100" > link

Github

diff --git a/frontend/src/preferences/APIKeyModal.tsx b/frontend/src/preferences/APIKeyModal.tsx index e8f9f224..0adc4881 100644 --- a/frontend/src/preferences/APIKeyModal.tsx +++ b/frontend/src/preferences/APIKeyModal.tsx @@ -60,7 +60,7 @@ export default function APIKeyModal({ return (

OpenAI API Key

diff --git a/frontend/src/preferences/SelectDocsModal.tsx b/frontend/src/preferences/SelectDocsModal.tsx index c514ab86..c8c8ef7d 100644 --- a/frontend/src/preferences/SelectDocsModal.tsx +++ b/frontend/src/preferences/SelectDocsModal.tsx @@ -61,7 +61,7 @@ export default function APIKeyModal({ isError={isError} render={() => { return ( -

+

Select Source Documentation

Please select the library of documentation that you would like to diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index 717568d7..0edc971b 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -55,7 +55,7 @@ export default function Upload({ setProgress(undefined); setModalState('INACTIVE'); }} - className={`rounded-md bg-blue-3000 px-4 py-2 text-sm font-medium text-white ${ + className={`rounded-3xl bg-blue-3000 px-4 py-2 text-sm font-medium text-white ${ isCancellable ? '' : 'hidden' }`} > @@ -162,7 +162,8 @@ export default function Upload({ 'text/x-rst': ['.rst'], 'text/x-markdown': ['.md'], 'application/zip': ['.zip'], - 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': ['.docx'] + 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': + ['.docx'], }, }); @@ -188,7 +189,7 @@ export default function Upload({ Name

- + Choose Files @@ -205,7 +206,7 @@ export default function Upload({