@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/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.c924328",
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 < 390 || cardSize.height < 250 // Hide robot when width < 390px in landscape
225
- : cardSize.height < 350 // Hide robot at height < 200px in portrait
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 < 283 // Landscape: hide runtime at height < 283px
231
- : cardSize.height < 450 // Portrait: hide runtime much earlier at height < 450px
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 clip observe margin={1}>
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 based on shouldHideRuntime */}
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: 2, sm: 3, md: 4 }, // More margin when runtime is hidden
527
+ : { xs: 0.5, sm: 1, md: 2 },
528
528
  mb: { xs: 0.5, sm: 0.75, md: 1 },
529
529
  }}
530
530
  >