@wandelbots/wandelbots-js-react-components 2.33.0-pr.feature-robot-precondition-list.372.c924328 → 2.33.0-pr.feature-robot-precondition-list.372.f4981e5
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 +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/RobotCard.tsx +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wandelbots/wandelbots-js-react-components",
|
|
3
|
-
"version": "2.33.0-pr.feature-robot-precondition-list.372.
|
|
3
|
+
"version": "2.33.0-pr.feature-robot-precondition-list.372.f4981e5",
|
|
4
4
|
"description": "React UI toolkit for building applications on top of the Wandelbots platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -221,14 +221,14 @@ export const RobotCard = externalizeComponent(
|
|
|
221
221
|
|
|
222
222
|
// Determine if robot should be hidden at small sizes to save space
|
|
223
223
|
const shouldHideRobot = isLandscape
|
|
224
|
-
? cardSize.width <
|
|
225
|
-
: cardSize.height <
|
|
224
|
+
? cardSize.width < 350
|
|
225
|
+
: cardSize.height < 200 // Hide robot at height < 200px in portrait
|
|
226
226
|
|
|
227
227
|
// Determine if runtime view should be hidden when height is too low
|
|
228
228
|
// Runtime should be hidden BEFORE the robot (at higher threshold)
|
|
229
229
|
const shouldHideRuntime = isLandscape
|
|
230
|
-
? cardSize.height <
|
|
231
|
-
: cardSize.height < 450 // Portrait: hide runtime
|
|
230
|
+
? cardSize.height < 310 // Landscape: hide runtime at height < 350px
|
|
231
|
+
: cardSize.height < 450 // Portrait: hide runtime at height < 450px
|
|
232
232
|
|
|
233
233
|
return (
|
|
234
234
|
<Card
|
|
@@ -292,7 +292,7 @@ export const RobotCard = externalizeComponent(
|
|
|
292
292
|
gl={{ alpha: true, antialias: true }}
|
|
293
293
|
>
|
|
294
294
|
<PresetEnvironment />
|
|
295
|
-
<Bounds fit
|
|
295
|
+
<Bounds fit observe margin={1} maxDuration={0}>
|
|
296
296
|
<RobotComponent
|
|
297
297
|
connectedMotionGroup={connectedMotionGroup}
|
|
298
298
|
postModelRender={handleModelRender}
|
|
@@ -470,7 +470,7 @@ export const RobotCard = externalizeComponent(
|
|
|
470
470
|
gl={{ alpha: true, antialias: true }}
|
|
471
471
|
>
|
|
472
472
|
<PresetEnvironment />
|
|
473
|
-
<Bounds fit clip observe margin={1}>
|
|
473
|
+
<Bounds fit clip observe margin={1} maxDuration={0}>
|
|
474
474
|
<RobotComponent
|
|
475
475
|
connectedMotionGroup={connectedMotionGroup}
|
|
476
476
|
postModelRender={handleModelRender}
|
|
@@ -482,7 +482,7 @@ export const RobotCard = externalizeComponent(
|
|
|
482
482
|
|
|
483
483
|
{/* Bottom section with runtime, cycle time, and button */}
|
|
484
484
|
<Box>
|
|
485
|
-
{/* Runtime view - hidden
|
|
485
|
+
{/* Runtime view - hidden if height is too low */}
|
|
486
486
|
{!shouldHideRuntime && (
|
|
487
487
|
<>
|
|
488
488
|
{/* Runtime display */}
|
|
@@ -524,7 +524,7 @@ export const RobotCard = externalizeComponent(
|
|
|
524
524
|
justifyContent: "flex-start",
|
|
525
525
|
mt: !shouldHideRuntime
|
|
526
526
|
? { xs: 1, sm: 2, md: 5 }
|
|
527
|
-
: { xs:
|
|
527
|
+
: { xs: 0.5, sm: 1, md: 2 },
|
|
528
528
|
mb: { xs: 0.5, sm: 0.75, md: 1 },
|
|
529
529
|
}}
|
|
530
530
|
>
|