myoperator-mcp 0.2.281 → 0.2.283
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.js +14 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4333,7 +4333,7 @@ export interface PageHeaderProps
|
|
|
4333
4333
|
actions?: React.ReactNode;
|
|
4334
4334
|
/** Show bottom border (default: true) */
|
|
4335
4335
|
showBorder?: boolean;
|
|
4336
|
-
/** Layout mode: 'horizontal' (row
|
|
4336
|
+
/** Layout mode: 'horizontal' (always single row, actions inline even on mobile), 'vertical' (stacked), 'responsive' (row on sm+, stacked with expandable actions on narrow, default) */
|
|
4337
4337
|
layout?: "horizontal" | "vertical" | "responsive";
|
|
4338
4338
|
/** Max actions to show on mobile before overflow (default: 2) */
|
|
4339
4339
|
mobileOverflowLimit?: number;
|
|
@@ -4413,7 +4413,7 @@ const PageHeader = React.forwardRef(
|
|
|
4413
4413
|
|
|
4414
4414
|
// Layout classes based on prop
|
|
4415
4415
|
const layoutClasses = {
|
|
4416
|
-
horizontal: "flex-
|
|
4416
|
+
horizontal: "flex-row items-center",
|
|
4417
4417
|
vertical: "flex-col",
|
|
4418
4418
|
responsive: "flex-col sm:flex-row sm:items-center",
|
|
4419
4419
|
};
|
|
@@ -4491,7 +4491,18 @@ const PageHeader = React.forwardRef(
|
|
|
4491
4491
|
return renderExpandableActions("mt-3");
|
|
4492
4492
|
}
|
|
4493
4493
|
|
|
4494
|
-
|
|
4494
|
+
if (layout === "horizontal") {
|
|
4495
|
+
// Always inline \u2014 single row at every breakpoint, no mobile expandable grid
|
|
4496
|
+
return (
|
|
4497
|
+
<div className="flex items-center gap-2 ml-auto shrink-0 [&>*]:w-auto">
|
|
4498
|
+
{actionsArray.map((action, index) => (
|
|
4499
|
+
<React.Fragment key={index}>{action}</React.Fragment>
|
|
4500
|
+
))}
|
|
4501
|
+
</div>
|
|
4502
|
+
);
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4505
|
+
// responsive: stack actions below title on small screens
|
|
4495
4506
|
return (
|
|
4496
4507
|
<>
|
|
4497
4508
|
{renderDesktopActions()}
|
package/package.json
CHANGED