releasebird-javascript-sdk 1.0.77 → 1.0.78
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.
|
@@ -843,15 +843,15 @@ export default class RbirdWebsiteWidget {
|
|
|
843
843
|
// Update badge position
|
|
844
844
|
if (this.countBadge) {
|
|
845
845
|
const buttonRect = this.websiteWidget.getBoundingClientRect();
|
|
846
|
-
this.countBadge.style.left = `${buttonRect.right -
|
|
846
|
+
this.countBadge.style.left = `${buttonRect.right - 10}px`;
|
|
847
847
|
this.countBadge.style.right = 'unset';
|
|
848
|
-
this.countBadge.style.bottom = `${window.innerHeight - buttonRect.top
|
|
848
|
+
this.countBadge.style.bottom = `${window.innerHeight - buttonRect.top - 5}px`;
|
|
849
849
|
}
|
|
850
850
|
|
|
851
851
|
// Update hide button position (top right of bubble)
|
|
852
852
|
if (this.hideWidgetButton) {
|
|
853
853
|
const buttonRect = this.websiteWidget.getBoundingClientRect();
|
|
854
|
-
this.hideWidgetButton.style.left = `${buttonRect.right -
|
|
854
|
+
this.hideWidgetButton.style.left = `${buttonRect.right - 10}px`;
|
|
855
855
|
this.hideWidgetButton.style.right = 'unset';
|
|
856
856
|
this.hideWidgetButton.style.bottom = `${window.innerHeight - buttonRect.top + 5}px`;
|
|
857
857
|
}
|
|
@@ -926,16 +926,16 @@ export default class RbirdWebsiteWidget {
|
|
|
926
926
|
|
|
927
927
|
// Update badge position
|
|
928
928
|
if (this.countBadge) {
|
|
929
|
-
this.countBadge.style.left = `${buttonRect.right -
|
|
929
|
+
this.countBadge.style.left = `${buttonRect.right - 10}px`;
|
|
930
930
|
this.countBadge.style.right = 'unset';
|
|
931
|
-
this.countBadge.style.bottom = `${window.innerHeight - buttonRect.top
|
|
931
|
+
this.countBadge.style.bottom = `${window.innerHeight - buttonRect.top - 5}px`;
|
|
932
932
|
}
|
|
933
933
|
|
|
934
934
|
// Update hide button position (top right of bubble)
|
|
935
935
|
if (this.hideWidgetButton) {
|
|
936
|
-
this.hideWidgetButton.style.left = `${buttonRect.right -
|
|
936
|
+
this.hideWidgetButton.style.left = `${buttonRect.right - 10}px`;
|
|
937
937
|
this.hideWidgetButton.style.right = 'unset';
|
|
938
|
-
this.hideWidgetButton.style.bottom = `${window.innerHeight - buttonRect.top
|
|
938
|
+
this.hideWidgetButton.style.bottom = `${window.innerHeight - buttonRect.top - 5}px`;
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
// Update message bubbles container position
|