@procaaso/alphinity-ui-components 1.0.8 → 1.0.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.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -21
- package/dist/index.d.ts +27 -21
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -999,6 +999,8 @@ function DeviceControlPanel({
|
|
|
999
999
|
onClose,
|
|
1000
1000
|
position = "bottom",
|
|
1001
1001
|
touchOptimized = true,
|
|
1002
|
+
maxHeight,
|
|
1003
|
+
maxWidth,
|
|
1002
1004
|
onModeChange,
|
|
1003
1005
|
onParameterChange,
|
|
1004
1006
|
onStart,
|
|
@@ -1060,7 +1062,10 @@ function DeviceControlPanel({
|
|
|
1060
1062
|
bottom: 0,
|
|
1061
1063
|
left: 0,
|
|
1062
1064
|
right: 0,
|
|
1063
|
-
animation: "slideUp 0.3s ease-out"
|
|
1065
|
+
animation: "slideUp 0.3s ease-out",
|
|
1066
|
+
maxWidth,
|
|
1067
|
+
marginLeft: "auto",
|
|
1068
|
+
marginRight: "auto"
|
|
1064
1069
|
} : {
|
|
1065
1070
|
right: 0,
|
|
1066
1071
|
top: 0,
|
|
@@ -1075,7 +1080,7 @@ function DeviceControlPanel({
|
|
|
1075
1080
|
border: `2px solid ${borderColor}`,
|
|
1076
1081
|
padding: "20px",
|
|
1077
1082
|
zIndex: 9999,
|
|
1078
|
-
maxHeight: position === "bottom" ? "70vh" : "100vh",
|
|
1083
|
+
maxHeight: maxHeight || (position === "bottom" ? "70vh" : "100vh"),
|
|
1079
1084
|
overflowY: "auto",
|
|
1080
1085
|
...binding.display?.style
|
|
1081
1086
|
};
|