@botonic/react 0.30.7-alpha.0 → 0.30.7-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ const scroll_button_1 = require("./scroll-button");
13
13
  const styles_1 = require("./styles");
14
14
  const unread_messages_banner_1 = require("./unread-messages-banner");
15
15
  const use_notifications_1 = require("./use-notifications");
16
- const SCROLL_TIMEOUT = 100;
16
+ const SCROLL_TIMEOUT = 200;
17
17
  const scrollOptionsEnd = {
18
18
  behavior: 'smooth',
19
19
  block: 'end',
@@ -16,9 +16,9 @@ exports.DefaultIntroImage = styled_components_1.default.img `
16
16
  width: 100%;
17
17
  `;
18
18
  exports.ContainerScrollButton = styled_components_1.default.div `
19
- position: absolute;
20
- right: 10px;
21
- bottom: 65px;
19
+ position: sticky;
20
+ left: 85%;
21
+ bottom: 15px;
22
22
 
23
23
  background-color: #6d6a78;
24
24
  cursor: pointer;
@@ -9,7 +9,7 @@ import { ScrollButton } from './scroll-button';
9
9
  import { ContainerMessage, ScrollableMessageList } from './styles';
10
10
  import { UnreadMessagesBanner } from './unread-messages-banner';
11
11
  import { useNotifications } from './use-notifications';
12
- const SCROLL_TIMEOUT = 100;
12
+ const SCROLL_TIMEOUT = 200;
13
13
  const scrollOptionsEnd = {
14
14
  behavior: 'smooth',
15
15
  block: 'end',
@@ -12,9 +12,9 @@ export const DefaultIntroImage = styled.img `
12
12
  width: 100%;
13
13
  `;
14
14
  export const ContainerScrollButton = styled.div `
15
- position: absolute;
16
- right: 10px;
17
- bottom: 65px;
15
+ position: sticky;
16
+ left: 85%;
17
+ bottom: 15px;
18
18
 
19
19
  background-color: #6d6a78;
20
20
  cursor: pointer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/react",
3
- "version": "0.30.7-alpha.0",
3
+ "version": "0.30.7-alpha.1",
4
4
  "license": "MIT",
5
5
  "description": "Build Chatbots using React",
6
6
  "main": "./lib/cjs",
@@ -10,7 +10,7 @@ import { ContainerMessage, ScrollableMessageList } from './styles'
10
10
  import { UnreadMessagesBanner } from './unread-messages-banner'
11
11
  import { useNotifications } from './use-notifications'
12
12
 
13
- const SCROLL_TIMEOUT = 100
13
+ const SCROLL_TIMEOUT = 200
14
14
  const scrollOptionsEnd: ScrollIntoViewOptions = {
15
15
  behavior: 'smooth',
16
16
  block: 'end',
@@ -15,9 +15,9 @@ export const DefaultIntroImage = styled.img`
15
15
  `
16
16
 
17
17
  export const ContainerScrollButton = styled.div`
18
- position: absolute;
19
- right: 10px;
20
- bottom: 65px;
18
+ position: sticky;
19
+ left: 85%;
20
+ bottom: 15px;
21
21
 
22
22
  background-color: #6d6a78;
23
23
  cursor: pointer;