Skip to content

Commit af0145d

Browse files
author
Nathan Zylbersztejn
authored
doc fix related to image dims
1 parent da112b6 commit af0145d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ In your `<body/>`:
4141
</script>
4242
```
4343

44+
About images: `width` and `height` define the size in pixels that images in messages are crop-scaled to. If not present, the image will scale to the maximum width of the container and the image.
45+
4446
It is recommended to use a particular version (i.e. "webchat-<version>.js") however the file "webchat-latest.js"
4547
is also available and is updated continuously with the latest version.
4648

@@ -80,7 +82,6 @@ function CustomWidget = () => {
8082

8183
- Make sure to have the prop `embedded`
8284
set to `true` if you don't want to see the launcher.
83-
- `width` and `height` define the size in pixels that images in messages are crop-scaled to. If set to `null`, the image will scale to the maximum width of the container and the image.
8485

8586
## In your backend.
8687

0 commit comments

Comments
 (0)