cloudmr-ux 1.7.8 → 1.7.9
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/index.js +4 -8
- package/dist/index.mjs +4 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1137,7 +1137,7 @@ var CMRSelectUpload = (props) => {
|
|
|
1137
1137
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_DialogTitle6.default, { children: "Select or Upload" }),
|
|
1138
1138
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_DialogContent6.default, { sx: { width: 520 }, children: [
|
|
1139
1139
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_DialogContentText5.default, { sx: { pl: 1, pr: 1, pb: 0 }, children: uploading ? "Please wait for the upload to finish." : "" }),
|
|
1140
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1140
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Box3.default, { sx: { p: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1141
1141
|
import_react_select.default,
|
|
1142
1142
|
{
|
|
1143
1143
|
isDisabled: uploading,
|
|
@@ -1154,18 +1154,14 @@ var CMRSelectUpload = (props) => {
|
|
|
1154
1154
|
selectFileIndex(-1);
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
1157
|
+
menuPortalTarget: document.body,
|
|
1158
|
+
menuPosition: "fixed",
|
|
1157
1159
|
styles: {
|
|
1158
1160
|
container: (base) => ({ ...base, width: "100%" }),
|
|
1159
|
-
|
|
1160
|
-
...base,
|
|
1161
|
-
zIndex: 9999,
|
|
1162
|
-
width: "100%"
|
|
1163
|
-
// Ensure the dropdown matches container width
|
|
1164
|
-
}),
|
|
1161
|
+
menuPortal: (base) => ({ ...base, zIndex: 9999 }),
|
|
1165
1162
|
menuList: (base) => ({
|
|
1166
1163
|
...base,
|
|
1167
1164
|
maxHeight: "300px",
|
|
1168
|
-
// Optional: prevent scroll from being too short
|
|
1169
1165
|
overflowY: "auto"
|
|
1170
1166
|
})
|
|
1171
1167
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1089,7 +1089,7 @@ var CMRSelectUpload = (props) => {
|
|
|
1089
1089
|
/* @__PURE__ */ jsx18(DialogTitle6, { children: "Select or Upload" }),
|
|
1090
1090
|
/* @__PURE__ */ jsxs12(DialogContent6, { sx: { width: 520 }, children: [
|
|
1091
1091
|
/* @__PURE__ */ jsx18(DialogContentText5, { sx: { pl: 1, pr: 1, pb: 0 }, children: uploading ? "Please wait for the upload to finish." : "" }),
|
|
1092
|
-
/* @__PURE__ */ jsx18(
|
|
1092
|
+
/* @__PURE__ */ jsx18(Box4, { sx: { p: 1 }, children: /* @__PURE__ */ jsx18(
|
|
1093
1093
|
Select2,
|
|
1094
1094
|
{
|
|
1095
1095
|
isDisabled: uploading,
|
|
@@ -1106,18 +1106,14 @@ var CMRSelectUpload = (props) => {
|
|
|
1106
1106
|
selectFileIndex(-1);
|
|
1107
1107
|
}
|
|
1108
1108
|
},
|
|
1109
|
+
menuPortalTarget: document.body,
|
|
1110
|
+
menuPosition: "fixed",
|
|
1109
1111
|
styles: {
|
|
1110
1112
|
container: (base) => ({ ...base, width: "100%" }),
|
|
1111
|
-
|
|
1112
|
-
...base,
|
|
1113
|
-
zIndex: 9999,
|
|
1114
|
-
width: "100%"
|
|
1115
|
-
// Ensure the dropdown matches container width
|
|
1116
|
-
}),
|
|
1113
|
+
menuPortal: (base) => ({ ...base, zIndex: 9999 }),
|
|
1117
1114
|
menuList: (base) => ({
|
|
1118
1115
|
...base,
|
|
1119
1116
|
maxHeight: "300px",
|
|
1120
|
-
// Optional: prevent scroll from being too short
|
|
1121
1117
|
overflowY: "auto"
|
|
1122
1118
|
})
|
|
1123
1119
|
}
|