diff --git a/packages/embeds/js/package.json b/packages/embeds/js/package.json index b6b8af1700..2eccb0f7b2 100644 --- a/packages/embeds/js/package.json +++ b/packages/embeds/js/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/js", - "version": "0.2.1", + "version": "0.2.2", "description": "Javascript library to display typebots on your website", "type": "module", "main": "dist/index.js", diff --git a/packages/embeds/js/src/assets/index.css b/packages/embeds/js/src/assets/index.css index 478ef39435..d781b418ef 100644 --- a/packages/embeds/js/src/assets/index.css +++ b/packages/embeds/js/src/assets/index.css @@ -100,10 +100,9 @@ a { ul, ol { - list-style-position: inside; - display: flex; - flex-direction: column; - gap: 12px; + margin-inline-start: 0px; + margin-inline-end: 0px; + padding-inline-start: 40px; } ol { @@ -114,6 +113,19 @@ ul { list-style-type: disc; } +li:not(:last-child) { + margin-bottom: 8px; +} + +pre { + white-space: pre-wrap; + word-wrap: break-word; + overflow-wrap: break-word; + max-height: 100%; + max-width: 100%; + overflow: auto; +} + .slate-bold { font-weight: bold; } diff --git a/packages/embeds/js/src/components/ConversationContainer/ChatChunk.tsx b/packages/embeds/js/src/components/ConversationContainer/ChatChunk.tsx index d09b081b50..93942f314c 100644 --- a/packages/embeds/js/src/components/ConversationContainer/ChatChunk.tsx +++ b/packages/embeds/js/src/components/ConversationContainer/ChatChunk.tsx @@ -117,6 +117,7 @@ export const ChatChunk = (props: Props) => {
{ return (
-
+