🚸 (openai) Improve streamed message lists CSS

This commit is contained in:
Baptiste Arnaud
2023-10-06 15:37:55 +02:00
parent 0ba13b4df0
commit b232a9495e
5 changed files with 27 additions and 11 deletions

View File

@@ -7,17 +7,17 @@ type Props = {
streamingMessageId: string
}
marked.use({
renderer: {
link: (href, _title, text) => {
return `<a href="${href}" target="_blank" rel="noopener noreferrer">${text}</a>`
},
},
})
export const StreamingBubble = (props: Props) => {
const [content, setContent] = createSignal<string>('')
marked.use({
renderer: {
link: (href, _title, text) => {
return `<a href="${href}" target="_blank" rel="noopener noreferrer">${text}</a>`
},
},
})
createEffect(() => {
if (streamingMessage()?.id === props.streamingMessageId)
setContent(