@webitel/ui-sdk 1.0.18 → 1.0.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -221,9 +221,9 @@ export default {
221
221
  // cant test this thing cause vue test utils doesnt render elements width :/
222
222
  const afterWrapperWidth = this.$refs['after-wrapper'].offsetWidth;
223
223
  const inputEl = this.$refs['wt-input'];
224
- const defaultInputPadding = parseInt(getComputedStyle(document.documentElement)
225
- .getPropertyValue('--input-padding'), 10);
226
- inputEl.style.paddingRight = `${defaultInputPadding + afterWrapperWidth + defaultInputPadding}px`;
224
+ const defaultInputPadding = getComputedStyle(document.documentElement)
225
+ .getPropertyValue('--input-padding');
226
+ inputEl.style.paddingRight = `calc(${defaultInputPadding} * 2 + ${afterWrapperWidth}px)`;
227
227
  },
228
228
  },
229
229
  mounted() {