File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
## 0.5.3
2
2
- Added the parameter hideWhenNotConnected to not display the widget when the server is not connected (defaults to true)
3
3
- Fixed issue where the 'connected' property was being loaded from previous session instead of being triggered on actual connection
4
+ - Reduced the size of the widget container on mobile and in fullscreen mode (blocking clicks)
4
5
5
6
## 0.5.2
6
7
- Added support for custom images for open and close buttons of chatWidget interface
Original file line number Diff line number Diff line change @@ -13,12 +13,17 @@ const WidgetLayout = (props) => {
13
13
}
14
14
const showCloseButton = props . showCloseButton !== undefined ? props . showCloseButton : ! props . embedded ;
15
15
const isVisible = props . isChatVisible && ! ( props . hideWhenNotConnected && ! props . connected ) ;
16
+ const chatShowing = ( props . isChatOpen || props . embedded ) ;
17
+
18
+ if ( chatShowing && ! props . embedded ) {
19
+ classes . push ( 'chat-open' ) ;
20
+ }
16
21
17
22
return (
18
23
isVisible ?
19
24
< div className = { classes . join ( ' ' ) } >
20
25
{
21
- ( props . isChatOpen || props . embedded ) &&
26
+ chatShowing &&
22
27
< Conversation
23
28
title = { props . title }
24
29
subtitle = { props . subtitle }
Original file line number Diff line number Diff line change 13
13
align-items : flex-end ;
14
14
justify-content : flex-end ;
15
15
16
- & .full-screen {
16
+ & .full-screen.chat-open {
17
17
@include widget-container-fs ;
18
18
}
19
19
}
32
32
}
33
33
34
34
@media screen and (max-width : 800px ) {
35
- .widget-container {
35
+ .widget-container.chat-open {
36
36
@include widget-container-fs ;
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments