@1024pix/pix-ui 58.4.9 → 58.4.10
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.
|
@@ -43,10 +43,10 @@ export default class PixMultiSelect extends Component {
|
|
|
43
43
|
getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0],
|
|
44
44
|
);
|
|
45
45
|
const listWidth = elementList.getBoundingClientRect().width;
|
|
46
|
-
const selectWidth = listWidth / baseFontRemRatio;
|
|
46
|
+
const selectWidth = Number(listWidth / baseFontRemRatio + 0.5).toFixed(2); // Fix for FF
|
|
47
47
|
|
|
48
48
|
const element = document.getElementById(`container-${this.multiSelectId}`);
|
|
49
|
-
element.style.setProperty('--pix-multi-select-width', `${selectWidth
|
|
49
|
+
element.style.setProperty('--pix-multi-select-width', `${selectWidth}rem`);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -33,10 +33,10 @@ export default class PixSelect extends Component {
|
|
|
33
33
|
getComputedStyle(document.querySelector('html')).fontSize.match(/\d+(\.\d+)?/)[0],
|
|
34
34
|
);
|
|
35
35
|
const listWidth = elementList.getBoundingClientRect().width;
|
|
36
|
-
const selectWidth = listWidth / baseFontRemRatio;
|
|
36
|
+
const selectWidth = Number(listWidth / baseFontRemRatio + 0.5).toFixed(2); // Fix for FF
|
|
37
37
|
|
|
38
38
|
const element = document.getElementById(`container-${this.selectId}`);
|
|
39
|
-
element.style.setProperty('--pix-select-width', `${selectWidth
|
|
39
|
+
element.style.setProperty('--pix-select-width', `${selectWidth}rem`);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1024pix/pix-ui",
|
|
3
|
-
"version": "58.4.
|
|
3
|
+
"version": "58.4.10",
|
|
4
4
|
"description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/core": "^7.25.2",
|
|
64
|
-
"@formatjs/intl": "^
|
|
64
|
+
"@formatjs/intl": "^4.0.0",
|
|
65
65
|
"check-engine": "^1.14.0",
|
|
66
66
|
"ember-auto-import": "^2.7.4",
|
|
67
67
|
"ember-cli-babel": "^8.2.0",
|