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 11## 0.5.3
22- Added the parameter hideWhenNotConnected to not display the widget when the server is not connected (defaults to true)
33- 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)
45
56## 0.5.2
67- 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) => {
1313 }
1414 const showCloseButton = props . showCloseButton !== undefined ? props . showCloseButton : ! props . embedded ;
1515 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+ }
1621
1722 return (
1823 isVisible ?
1924 < div className = { classes . join ( ' ' ) } >
2025 {
21- ( props . isChatOpen || props . embedded ) &&
26+ chatShowing &&
2227 < Conversation
2328 title = { props . title }
2429 subtitle = { props . subtitle }
Original file line number Diff line number Diff line change 1313 align-items : flex-end ;
1414 justify-content : flex-end ;
1515
16- & .full-screen {
16+ & .full-screen.chat-open {
1717 @include widget-container-fs ;
1818 }
1919}
3232}
3333
3434@media screen and (max-width : 800px ) {
35- .widget-container {
35+ .widget-container.chat-open {
3636 @include widget-container-fs ;
3737 }
3838}
You can’t perform that action at this time.
0 commit comments