Skip to content

Commit

Permalink
fix: user message
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaalnaik committed Nov 12, 2024
1 parent 5248051 commit f4af0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/chat/src/components/UserMessage/UserMessage.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export const messageContainer = style({
backgroundColor: PALETTE.colors[500],
color: PALETTE.colors[50],
padding: '11px 16px 10px',
marginBottom: 4,
marginTop: 12,
fontFamily: FAMILY,
position: 'relative',
fontSize: '14px',
Expand Down
5 changes: 3 additions & 2 deletions packages/chat/src/components/UserResponse/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { ClassName } from '@/constants';
import { useAutoScroll } from '@/hooks/useAutoScroll';

import { Tooltip } from '../Tooltip';
import { debugMessage, messageContainer, messageRow, messageStyle } from './styles.css';
import { UserMessage } from '../UserMessage';
import { debugMessage, messageContainer, messageRow } from './styles.css';

export interface DebugActionProps {
label: string;
Expand Down Expand Up @@ -59,7 +60,7 @@ export const UserResponse: React.FC<UserResponseProps> = ({ message, debug, isFi
return (
<div className={clsx(ClassName.USER_RESPONSE, messageContainer)}>
<div className={messageRow({ isFirst, hasAvatar })}>
<div className={messageStyle}>{message}</div>
<UserMessage message={message} />
</div>
{debug && (
<>
Expand Down

0 comments on commit f4af0cd

Please sign in to comment.