@subiz/widget-v4 4.1.52 → 4.1.54
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/assets/less/widget.less
CHANGED
|
@@ -156,6 +156,7 @@ class Widget extends _common.Com {
|
|
|
156
156
|
let position = _index.default.get(accountSetting, 'desktop_button.position') || 'right';
|
|
157
157
|
if (this.props.store.isMobile()) position = _index.default.get(accountSetting, 'mobile_button.position', position);
|
|
158
158
|
let cls = 'widget-container widget-container--' + position;
|
|
159
|
+
if (!this.props.store.isMobile() && _index.default.get(accountSetting, 'window_mode') === 'full') cls += ' widget-container--full';
|
|
159
160
|
if (!this.props.isShow) cls += ' widget-container--hide';
|
|
160
161
|
return (0, _preact.h)("div", {
|
|
161
162
|
class: cls
|
package/package.json
CHANGED
package/src/chatbox/Widget.js
CHANGED
|
@@ -119,6 +119,8 @@ export default class Widget extends Com {
|
|
|
119
119
|
let position = sb.get(accountSetting, 'desktop_button.position') || 'right'
|
|
120
120
|
if (this.props.store.isMobile()) position = sb.get(accountSetting, 'mobile_button.position', position)
|
|
121
121
|
let cls = 'widget-container widget-container--' + position
|
|
122
|
+
if (!this.props.store.isMobile() && sb.get(accountSetting, 'window_mode') === 'full')
|
|
123
|
+
cls += ' widget-container--full'
|
|
122
124
|
if (!this.props.isShow) cls += ' widget-container--hide'
|
|
123
125
|
return (
|
|
124
126
|
<div class={cls}>
|