cc-ui-library 3.0.1 → 3.0.2
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.
|
@@ -87,7 +87,7 @@ const Dropdown = /*#__PURE__*/forwardRef(({
|
|
|
87
87
|
};
|
|
88
88
|
const positionStyle = updateDropdownPosition();
|
|
89
89
|
const dropdownWidth = positionStyle.width;
|
|
90
|
-
const basePadding =
|
|
90
|
+
const basePadding = 20;
|
|
91
91
|
const iconPadding = showIcon ? 32 : 5;
|
|
92
92
|
const effectiveContentWidth = customReccurenece ? (typeof dropdownWidth === 'number' ? dropdownWidth / 2 : 0) - basePadding - iconPadding : dropdownWidth - basePadding - iconPadding;
|
|
93
93
|
const sortedOptions = useMemo(() => {
|
package/lib/index.cjs
CHANGED
|
@@ -7117,7 +7117,7 @@ const Dropdown$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
7117
7117
|
};
|
|
7118
7118
|
const positionStyle = updateDropdownPosition();
|
|
7119
7119
|
const dropdownWidth = positionStyle.width;
|
|
7120
|
-
const basePadding =
|
|
7120
|
+
const basePadding = 20;
|
|
7121
7121
|
const iconPadding = showIcon ? 32 : 5;
|
|
7122
7122
|
const effectiveContentWidth = customReccurenece ? (typeof dropdownWidth === 'number' ? dropdownWidth / 2 : 0) - basePadding - iconPadding : dropdownWidth - basePadding - iconPadding;
|
|
7123
7123
|
const sortedOptions = React.useMemo(() => {
|