@webitel/ui-sdk 2.0.5-5 → 2.0.5-8
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/ui-sdk.common.js +24 -19
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +24 -19
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +2 -2
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-input/wt-input.vue +7 -10
package/package.json
CHANGED
|
@@ -218,16 +218,13 @@ export default {
|
|
|
218
218
|
},
|
|
219
219
|
|
|
220
220
|
async updateInputPaddings() {
|
|
221
|
-
|
|
222
|
-
this.
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
console.info('ipnut:', defaultInputPadding, afterWrapperWidth, defaultInputPadding * 2 + afterWrapperWidth);
|
|
229
|
-
inputEl.style.paddingRight = `calc(${defaultInputPadding} * 2 + ${afterWrapperWidth}px)`;
|
|
230
|
-
}, 100);
|
|
221
|
+
// cant test this thing cause vue test utils doesnt render elements width :/
|
|
222
|
+
const afterWrapperWidth = this.$refs['after-wrapper'].offsetWidth;
|
|
223
|
+
const inputEl = this.$refs['wt-input'];
|
|
224
|
+
const defaultInputPadding = getComputedStyle(document.documentElement)
|
|
225
|
+
.getPropertyValue('--input-padding');
|
|
226
|
+
if (afterWrapperWidth > inputEl.offsetWidth) return; // fixes https://my.webitel.com/browse/WTEL-2635
|
|
227
|
+
inputEl.style.paddingRight = `calc(${defaultInputPadding} * 2 + ${afterWrapperWidth}px)`;
|
|
231
228
|
},
|
|
232
229
|
},
|
|
233
230
|
mounted() {
|