fix minor ui bugs

This commit is contained in:
Mckay Wrigley
2023-03-18 04:10:35 -06:00
parent cb4a3861ec
commit fa4e27a164
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export const Chat: FC<Props> = ({ model, messages, loading, lightMode, onSend, o
return (
<div className="h-full w-full flex flex-col dark:bg-[#343541]">
<div className="flex-1 overflow-y-auto">
<div className="flex-1 overflow-auto">
{messages.length === 0 ? (
<>
<div className="flex justify-center pt-8 overflow-auto">
+1 -1
View File
@@ -11,7 +11,7 @@ interface Props {
export const ChatMessage: FC<Props> = ({ message, lightMode }) => {
return (
<div
className={`flex justify-center py-[30px] whitespace-pre-wrap ${message.role === "assistant" ? "dark:bg-[#444654] dark:text-neutral-100 bg-neutral-100 text-neutral-900 border border-neutral-300 dark:border-none" : "dark:bg-[#343541] dark:text-white text-neutral-900"}`}
className={`flex justify-center py-[30px] ${message.role === "assistant" ? "dark:bg-[#444654] dark:text-neutral-100 bg-neutral-100 text-neutral-900 border border-neutral-300 dark:border-none" : "dark:bg-[#343541] dark:text-white text-neutral-900"}`}
style={{ overflowWrap: "anywhere" }}
>
<div className="w-full px-4 sm:px-0 sm:w-2/3 md:w-1/2 flex">