Skip to content

Commit

Permalink
Chat user prompt preserve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Janaka-Steph committed Nov 8, 2023
1 parent 96c7b32 commit 9213008
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/assets/css/prem-chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
@apply flex items-end mb-[40px];
}

.user-reply p {
@apply bg-grey-100 border py-4 px-[22px] ml-auto max-w-[660px] text-base text-grey-700;
.user-reply pre {
@apply bg-grey-100 border py-4 px-[22px] ml-auto max-w-[660px] text-base text-grey-700 overflow-x-auto;
box-shadow:
10.4294px 10.4294px 26.0736px rgba(112, 124, 151, 0.05),
15.6442px 15.6442px 36.5031px rgba(112, 124, 151, 0.05);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/UserReply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { UserReplyProps } from "shared/types";
const UserReply = ({ reply }: UserReplyProps) => {
return (
<div className="user-reply">
<p>{reply}</p>
<pre>{reply}</pre>
<div className="flex justify-center align-center bg-grey-100 ml-3 rounded-full min-w-[35px] h-[35px]">
<img src={user} alt="user" width={16} height={16} />
</div>
Expand Down

0 comments on commit 9213008

Please sign in to comment.