@parallelworks/ui 0.24.0 → 0.24.1
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/list/ListPage.js +5 -1
- package/package.json +1 -1
package/dist/list/ListPage.js
CHANGED
|
@@ -76,7 +76,11 @@ function ListRow({ href, onActivate, items, goTo, openMenu, pinnedActions, selec
|
|
|
76
76
|
const { active: menuActive, openMenu: openRowMenu } = useRowMenuActive(openMenu);
|
|
77
77
|
const { show: showActions, always: alwaysShowActions, columnClasses, columnStacks } = useContext(RowActionsContext);
|
|
78
78
|
const cells = Children.toArray(children);
|
|
79
|
-
const stacked = cells.flatMap((child, i) =>
|
|
79
|
+
const stacked = cells.flatMap((child, i) => {
|
|
80
|
+
if (i === 0 || !columnStacks[i] || !isValidElement(child)) return [];
|
|
81
|
+
const content = child.props.children;
|
|
82
|
+
return Children.toArray(content).length > 0 ? [content] : [];
|
|
83
|
+
});
|
|
80
84
|
const styledCells = cells.map((child, i) => {
|
|
81
85
|
const cls = columnClasses[i];
|
|
82
86
|
if (!isValidElement(child) || !cls && !(i === 0 && stacked.length > 0)) return child;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parallelworks/ui",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.1",
|
|
4
4
|
"description": "React UI components: a theme contract, icons, primitives, lists, forms, a job graph, a code editor, a log viewer, a file explorer and an AI chat, each on its own subpath",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|