@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.
- package/lib/cjs/webchat/message-list/index.js +1 -1
- package/lib/cjs/webchat/message-list/styles.js +3 -3
- package/lib/esm/webchat/message-list/index.js +1 -1
- package/lib/esm/webchat/message-list/styles.js +3 -3
- package/package.json +1 -1
- package/src/webchat/message-list/index.tsx +1 -1
- package/src/webchat/message-list/styles.ts +3 -3
|
@@ -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 =
|
|
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:
|
|
20
|
-
|
|
21
|
-
bottom:
|
|
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 =
|
|
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:
|
|
16
|
-
|
|
17
|
-
bottom:
|
|
15
|
+
position: sticky;
|
|
16
|
+
left: 85%;
|
|
17
|
+
bottom: 15px;
|
|
18
18
|
|
|
19
19
|
background-color: #6d6a78;
|
|
20
20
|
cursor: pointer;
|
package/package.json
CHANGED
|
@@ -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 =
|
|
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:
|
|
19
|
-
|
|
20
|
-
bottom:
|
|
18
|
+
position: sticky;
|
|
19
|
+
left: 85%;
|
|
20
|
+
bottom: 15px;
|
|
21
21
|
|
|
22
22
|
background-color: #6d6a78;
|
|
23
23
|
cursor: pointer;
|