style(chat_manager.py, chatMessage/index.tsx): fix indentation and formatting issues

This commit is contained in:
Gabriel Almeida 2023-04-26 00:55:44 -03:00
commit 0945dbe582
2 changed files with 70 additions and 70 deletions

View file

@ -168,7 +168,7 @@ class ChatManager:
# Handle any exceptions that might occur # Handle any exceptions that might occur
logger.exception(e) logger.exception(e)
# send a message to the client # send a message to the client
await self.send_message(client_id, f"Error: {e}") await self.send_message(client_id, str(e))
raise e raise e
finally: finally:
await self.active_connections[client_id].close( await self.active_connections[client_id].close(

View file

@ -28,7 +28,7 @@ export default function ChatMessage({ chat }: { chat: ChatMessageType }) {
</div> </div>
{!chat.isSend ? ( {!chat.isSend ? (
<div className="w-full text-start flex items-center"> <div className="w-full text-start flex items-center">
<div className=" relative text-start inline-block text-gray-600 text-sm font-normal"> <div className="w-full relative text-start inline-block text-gray-600 text-sm font-normal">
{hidden && chat.thought && chat.thought !== "" && ( {hidden && chat.thought && chat.thought !== "" && (
<div <div
onClick={() => setHidden((prev) => !prev)} onClick={() => setHidden((prev) => !prev)}
@ -53,7 +53,7 @@ export default function ChatMessage({ chat }: { chat: ChatMessageType }) {
{chat.message} {chat.message}
{chat.files && ( {chat.files && (
<div className="my-2 w-full"> <div className="my-2 w-full">
{chat.files.map((file,index) => { {chat.files.map((file, index) => {
return ( return (
<div key={index} className="my-2 w-full"> <div key={index} className="my-2 w-full">
<FileCard <FileCard