aumera-on-screen-widget 0.0.11 → 0.0.12

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.
Files changed (2) hide show
  1. package/df-btn.js +3 -6
  2. package/package.json +1 -1
package/df-btn.js CHANGED
@@ -236,9 +236,8 @@ if (!config.orgId) {
236
236
  }
237
237
 
238
238
  .df-btn-text {
239
- padding: 0;
239
+ padding: 0 16px 0 0;
240
240
  height: 56px;
241
- font-size: 0;
242
241
  }
243
242
  }
244
243
 
@@ -429,10 +428,8 @@ if (!config.orgId) {
429
428
  } else {
430
429
  // Set text to openText
431
430
  if (btnText) btnText.innerText = config.openText || "Chat";
432
- // add right padding to df-btn-text only if screen size is greater than 720px
433
- if (window.innerWidth > 720) {
434
- btnText.style.paddingRight = "24px";
435
- }
431
+ // restore right padding from CSS
432
+ btnText.style.paddingRight = "";
436
433
  }
437
434
  }
438
435
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aumera-on-screen-widget",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "A lightweight, customizable chat widget for websites",
5
5
  "main": "df-btn.js",
6
6
  "scripts": {