From 3b7dd1995c8fd75a151d5cba6703b382259efd80 Mon Sep 17 00:00:00 2001 From: Javier Sanchez Date: Mon, 4 Mar 2024 14:13:18 +0100 Subject: [PATCH 1/3] Expands default chat height size for fitting disclaimer message --- src/Stack.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stack.tsx b/src/Stack.tsx index 8889c5f..3848076 100644 --- a/src/Stack.tsx +++ b/src/Stack.tsx @@ -13,7 +13,7 @@ const Stack = forwardRef(function Stack({ width = '35rem', fixed = true, }: StackProps) { - const height = '38.5rem'; + const height = '40rem'; const adjustWidth = (w: string) => { const minWidth = '15rem'; From ac74f6b84857897c672d1a180e46c92f473d4b14 Mon Sep 17 00:00:00 2001 From: Javier Sanchez Date: Wed, 6 Mar 2024 17:45:53 +0100 Subject: [PATCH 2/3] Bumps up version to 0.1.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c1f694..5b862e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-stackai", - "version": "0.1.7", + "version": "0.1.9", "files": [ "dist" ], From 68d315473db7ca75f530b9e3e1b39fe82332dcc4 Mon Sep 17 00:00:00 2001 From: Javier Sanchez Date: Wed, 6 Mar 2024 17:48:47 +0100 Subject: [PATCH 3/3] Updates readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b1af47b..12e609f 100644 --- a/README.md +++ b/README.md @@ -51,13 +51,13 @@ You should be able to see the chatbot embedded in your app These are all the props you can pass to the `` component. -| Name | Type | Description -| ---- | ------ | ----------- -| `project` | `string` | The URL of the project you want to embed -| `width` | `string` | Specifies the width of the iframe. The value must be a string with a numeric value followed by a unit (e.g., '35rem', '100px'). The default is '35rem'. If the width is less than the minimum width of 15 rem, a warning is logged, and the width is adjusted to the minimum. If the width is specified without a recognizable unit or is an invalid string, an error is thrown. -| `fixed` | `boolean` | Set to true if you want the chatbot to be fixed to the bottom of the screen, or false if you want it to be relative to the page. +| Name | Type | Description | +| --------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `project` | `string` | The URL of the project you want to embed | +| `width` | `string` | Specifies the width of the iframe. The value must be a string with a numeric value followed by a unit (e.g., '35rem', '100px'). The default is '35rem'. If the width is less than the minimum width of 15 rem, a warning is logged, and the width is adjusted to the minimum. If the width is specified without a recognizable unit or is an invalid string, an error is thrown. | +| `fixed` | `boolean` | Set to true if you want the chatbot to be fixed to the bottom of the screen, or false if you want it to be relative to the page. | -`height` of the iframe is automatically set to 38.5 rem. +`height` of the iframe is automatically set to `40 rem`. ## Contributing