Skip to content

Commit

Permalink
style(Markdown.tsx): add space before cursor when there is text
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Feb 10, 2024
1 parent 6221601 commit b28cd3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Chat/Messages/Content/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const p = React.memo(({ children }: { children: React.ReactNode }) => {
});

const Markdown = React.memo(({ content, message, showCursor }: TContentProps) => {
const [cursor, setCursor] = useState('⬤');
const [cursor, setCursor] = useState(' ⬤');
const { isSubmitting, latestMessage } = useChatContext();
const LaTeXParsing = useRecoilValue<boolean>(store.LaTeXParsing);

Expand All @@ -66,7 +66,7 @@ const Markdown = React.memo(({ content, message, showCursor }: TContentProps) =>
timer1 = setInterval(() => {
setCursor('ㅤ');
timer2 = setTimeout(() => {
setCursor('⬤');
setCursor(' ⬤');
}, 200);
}, 1000);
} else {
Expand Down

0 comments on commit b28cd3d

Please sign in to comment.