Skip to content

Commit

Permalink
Conversation citations: add right padding (#4177)
Browse files Browse the repository at this point in the history
* Conversation citations: add right padding

* Yes this is better
  • Loading branch information
PopDaph authored Mar 6, 2024
1 parent 34d5a62 commit 08dd765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions front/components/assistant/RenderMessageMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,13 @@ function CiteBlock(props: ReactMarkdownProps) {

if (refs) {
return (
<>
<span className="inline-flex space-x-1">
{refs.map((r, i) => {
const document = references[r.ref];
const link = linkFromDocument(document);

return (
<sup key={`${r.ref}-${i}`} className="inline-block">
<sup key={`${r.ref}-${i}`}>
<a
href={link}
target="_blank"
Expand All @@ -330,7 +330,7 @@ function CiteBlock(props: ReactMarkdownProps) {
</sup>
);
})}
</>
</span>
);
} else {
const { children } = props;
Expand Down

0 comments on commit 08dd765

Please sign in to comment.