aumera-on-screen-widget 0.0.11 → 0.0.13

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 +4 -6
  2. package/package.json +1 -1
package/df-btn.js CHANGED
@@ -236,9 +236,9 @@ 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;
241
+ font-size: 1rem;
242
242
  }
243
243
  }
244
244
 
@@ -429,10 +429,8 @@ if (!config.orgId) {
429
429
  } else {
430
430
  // Set text to openText
431
431
  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
- }
432
+ // restore right padding from CSS
433
+ btnText.style.paddingRight = "";
436
434
  }
437
435
  }
438
436
 
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.13",
4
4
  "description": "A lightweight, customizable chat widget for websites",
5
5
  "main": "df-btn.js",
6
6
  "scripts": {