@xapp/chat-widget 1.76.1 → 1.77.0

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/dist/index.js CHANGED
@@ -797,7 +797,7 @@ var ChatButton = function (_a) {
797
797
  };
798
798
  }, [mobileWidth]);
799
799
  var maxSvgSize = 22;
800
- var svgSize = Math.min(maxSvgSize, (+buttonWidth / 48) * maxSvgSize);
800
+ var svgSize = Math.min(maxSvgSize, (+buttonWidth / +defaultWidgetButtonWidth) * maxSvgSize);
801
801
  return (React$1.createElement("button", { "aria-label": "open chat", className: "xapp-chat-button ".concat(addClass || "").trim(), onClick: onClick },
802
802
  React$1.createElement("div", { id: "xapp-widget-button", className: "xapp-chat-button__btn", style: {
803
803
  width: "".concat(buttonWidth, "px"),