@inf-monkeys-tech/monkeys-design 2.0.422 → 2.0.423
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/components/capabilities/index.js +3 -3
- package/dist/components/capabilities/index.js.map +1 -1
- package/dist/components/capabilities/index.mjs +3 -3
- package/dist/components/capabilities/index.mjs.map +1 -1
- package/dist/sources/{431b82defa0e8e715224fd6fae8fa8e4a06749c41cdb52ff71ee34323c3ff795.tsx → 8a5fe3d94e56422fdbc1596fd7aea622ab94afe74a769663bcac08fe4c4e1406.tsx} +19 -13
- package/package.json +1 -1
|
@@ -1244,12 +1244,14 @@ const ShellLayoutCapabilityView = ({
|
|
|
1244
1244
|
transitionProperty: 'width',
|
|
1245
1245
|
transitionDuration: sidebarResizing ? '0ms' : '280ms',
|
|
1246
1246
|
transitionTimingFunction: 'cubic-bezier(0.22, 1, 0.36, 1)',
|
|
1247
|
+
// A collapsed sidebar keeps its subtree mounted so directory queries,
|
|
1248
|
+
// search and navigation state survive collapsing and expanding.
|
|
1249
|
+
overflow: childrenBySlot.sidebar && sidebarCollapsed ? 'hidden' : undefined,
|
|
1250
|
+
visibility: sidebarCollapsed ? 'hidden' : undefined,
|
|
1247
1251
|
}}
|
|
1248
1252
|
data-sidebar-collapsed={sidebarCollapsed ? 'true' : 'false'}
|
|
1249
1253
|
>
|
|
1250
|
-
{
|
|
1251
|
-
<DataExplorerTreeShell title={sidebarLabel}>{childrenBySlot.sidebar}</DataExplorerTreeShell>
|
|
1252
|
-
)}
|
|
1254
|
+
<DataExplorerTreeShell title={sidebarLabel}>{childrenBySlot.sidebar}</DataExplorerTreeShell>
|
|
1253
1255
|
{!sidebarCollapsed ? (
|
|
1254
1256
|
<div
|
|
1255
1257
|
aria-hidden="true"
|
|
@@ -1337,12 +1339,18 @@ const ShellLayoutCapabilityView = ({
|
|
|
1337
1339
|
}
|
|
1338
1340
|
notices={childrenBySlot.notices}
|
|
1339
1341
|
content={
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1342
|
+
// The wrapper stays mounted so opening or closing the detail panel never
|
|
1343
|
+
// rebuilds the main subtree and its scroll or input state.
|
|
1344
|
+
<div
|
|
1345
|
+
className={
|
|
1346
|
+
childrenBySlot.aside
|
|
1347
|
+
? 'flex min-h-0 min-w-0 flex-1 overflow-hidden'
|
|
1348
|
+
: 'flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden'
|
|
1349
|
+
}
|
|
1350
|
+
data-data-explorer-content-with-detail={childrenBySlot.aside ? 'true' : undefined}
|
|
1351
|
+
>
|
|
1352
|
+
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">{content}</div>
|
|
1353
|
+
{childrenBySlot.aside ? (
|
|
1346
1354
|
<div
|
|
1347
1355
|
className="monkeys-data-explorer-detail-slot relative min-h-0 shrink-0 border-l border-border/55 dark:border-border/45"
|
|
1348
1356
|
style={{ width: `${asideWidth}px` }}
|
|
@@ -1386,10 +1394,8 @@ const ShellLayoutCapabilityView = ({
|
|
|
1386
1394
|
{childrenBySlot.aside}
|
|
1387
1395
|
</aside>
|
|
1388
1396
|
</div>
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
content
|
|
1392
|
-
)
|
|
1397
|
+
) : null}
|
|
1398
|
+
</div>
|
|
1393
1399
|
}
|
|
1394
1400
|
className={model.fullHeight === true ? 'h-full' : undefined}
|
|
1395
1401
|
classNames={{
|