Skip to content

Commit

Permalink
A few fixes proposed by @Duncid [here](https://dust4ai.slack.com/arch…
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet authored Sep 19, 2023
1 parent fbe7a23 commit fa56b07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions front/components/RenderMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,14 @@ function PreBlock({ children }: { children: React.ReactNode }) {
}

function UlBlock({ children }: { children: React.ReactNode }) {
return <ul className="list-disc py-2 first:pt-0 last:pb-0">{children}</ul>;
return (
<ul className="list-disc py-2 pl-8 first:pt-0 last:pb-0">{children}</ul>
);
}
function OlBlock({ children }: { children: React.ReactNode }) {
return <ol className="list-decimal py-3 first:pt-0 last:pb-0">{children}</ol>;
return (
<ol className="list-decimal py-3 pl-8 first:pt-0 last:pb-0">{children}</ol>
);
}
function LiBlock({ children }: { children: React.ReactNode }) {
return <li className="py-2 first:pt-0 last:pb-0">{children}</li>;
Expand Down
4 changes: 2 additions & 2 deletions front/components/assistant/conversation/AgentMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function AgentMessage({
return (
<ConversationMessage
pictureUrl={agentMessageToRender.configuration.pictureUrl}
name={agentMessageToRender.configuration.name}
name={`@${agentMessageToRender.configuration.name}`}
messageId={agentMessageToRender.sId}
buttons={buttons}
>
Expand Down Expand Up @@ -185,7 +185,7 @@ function renderMessage(agentMessage: AgentMessageType) {
) {
return (
<div>
<div className="text-xs font-bold text-element-600">
<div className="pb-2 text-xs font-bold text-element-600">
I'm thinking...
</div>
<Spinner size="sm" />
Expand Down

0 comments on commit fa56b07

Please sign in to comment.