Skip to content

Commit

Permalink
Use textareas for previous questions
Browse files Browse the repository at this point in the history
  • Loading branch information
mruwnik committed Sep 30, 2023
1 parent 710d766 commit 42108e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions web/src/components/entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ import { ShowAssistantEntry } from "./assistant";
import { GlossarySpan } from "./glossary";
import Image from "next/image";
import logo from "../logo.svg";
import TextareaAutosize from 'react-textarea-autosize';

export const User = ({ entry }: { entry: UserEntry }) => {
return (
<li>
<p className="border border-gray-300 px-1 text-right">
{" "}
{entry.content}{" "}
</p>
<li className="flex mt-1 mb-2">
<TextareaAutosize className="border border-gray-300 px-1 flex-1 resize-none" value={entry.content} />
</li>
);
};
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const Home: NextPage = () => {
case "followups":
last_entry = <>
<ShowAssistantEntry entry={current} />
<p>Loading: Checking for followups...</p>
<p>Checking for followups...</p>
</>;
break;
}
Expand Down

0 comments on commit 42108e8

Please sign in to comment.