Skip to content

Commit

Permalink
FIX: Shorten pdf name closes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
thinley4 committed Oct 30, 2024
1 parent c8dfa16 commit 47b910e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
33 changes: 18 additions & 15 deletions web/src/app/components/SetApi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,24 @@ export default function SetApi() {
}
return (
<div className="flex justify-center">
<form className="flex gap-2 items-center" onSubmit={onSubmit}>
<input
onChange={(e) => {
setApiKey(e.target.value);
}}
type="text"
id="first_name"
className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-72 p-2.5 "
placeholder="Mistral API Key"
required
/>
<button className="bg-[#1C1A35] p-2 text-white" type="submit">
Submit
</button>
</form>
<div className="flex flex-col gap-2">
<div className="text-red-500">*Get your API Key from Mistral AI</div>
<form className="flex flex-col justify-center gap-2 md:flex" onSubmit={onSubmit}>
<input
onChange={(e) => {
setApiKey(e.target.value);
}}
type="text"
id="first_name"
className="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-72 p-2.5 "
placeholder="Mistral API Key"
required
/>
<button className="bg-[#1C1A35] p-2 text-white" type="submit">
Submit
</button>
</form>
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion web/src/app/components/SheetSide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function SheetSide({ list,collectionName }: CollectionListProps) {
: 'bg-[#0E0A24] hover:bg-[#13102b]'
}`}
>
<SheetTitle> {collection.pdfName} </SheetTitle>
<SheetTitle> {collection.pdfName.slice(0,10)+'.pdf'} </SheetTitle>
</Button>
<SheetDescription>
<DeletePdf collectionName={collection.CollectionName} />
Expand Down
Binary file modified web/src/app/favicon.ico
Binary file not shown.

0 comments on commit 47b910e

Please sign in to comment.