myoperator-mcp 0.2.135 → 0.2.137
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 +5 -18
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3431,7 +3431,7 @@ export interface PageHeaderProps
|
|
|
3431
3431
|
actions?: React.ReactNode;
|
|
3432
3432
|
/** Show bottom border (default: true) */
|
|
3433
3433
|
showBorder?: boolean;
|
|
3434
|
-
/** Layout mode: 'horizontal' (
|
|
3434
|
+
/** Layout mode: 'horizontal' (row on sm+, stacked on narrow), 'vertical' (stacked), 'responsive' (same as horizontal, default) */
|
|
3435
3435
|
layout?: "horizontal" | "vertical" | "responsive";
|
|
3436
3436
|
/** Max actions to show on mobile before overflow (default: 2) */
|
|
3437
3437
|
mobileOverflowLimit?: number;
|
|
@@ -3511,13 +3511,13 @@ const PageHeader = React.forwardRef(
|
|
|
3511
3511
|
|
|
3512
3512
|
// Layout classes based on prop
|
|
3513
3513
|
const layoutClasses = {
|
|
3514
|
-
horizontal: "flex-row items-center",
|
|
3514
|
+
horizontal: "flex-col sm:flex-row sm:items-center",
|
|
3515
3515
|
vertical: "flex-col",
|
|
3516
3516
|
responsive: "flex-col sm:flex-row sm:items-center",
|
|
3517
3517
|
};
|
|
3518
3518
|
|
|
3519
3519
|
const heightClasses = {
|
|
3520
|
-
horizontal: "h-[76px]",
|
|
3520
|
+
horizontal: "min-h-[76px] py-4 lg:py-0 lg:h-[76px]",
|
|
3521
3521
|
vertical: "min-h-[76px] py-4",
|
|
3522
3522
|
responsive: "min-h-[76px] py-4 lg:py-0 lg:h-[76px]",
|
|
3523
3523
|
};
|
|
@@ -3580,27 +3580,14 @@ const PageHeader = React.forwardRef(
|
|
|
3580
3580
|
);
|
|
3581
3581
|
};
|
|
3582
3582
|
|
|
3583
|
-
// For horizontal layout, always show all actions inline
|
|
3584
|
-
const renderHorizontalActions = () => (
|
|
3585
|
-
<div className="flex items-center gap-2 ml-4">
|
|
3586
|
-
{actionsArray.map((action, index) => (
|
|
3587
|
-
<React.Fragment key={index}>{action}</React.Fragment>
|
|
3588
|
-
))}
|
|
3589
|
-
</div>
|
|
3590
|
-
);
|
|
3591
|
-
|
|
3592
3583
|
const renderActions = () => {
|
|
3593
3584
|
if (!actions) return null;
|
|
3594
3585
|
|
|
3595
|
-
if (layout === "horizontal") {
|
|
3596
|
-
return renderHorizontalActions();
|
|
3597
|
-
}
|
|
3598
|
-
|
|
3599
3586
|
if (layout === "vertical") {
|
|
3600
3587
|
return renderExpandableActions("mt-3");
|
|
3601
3588
|
}
|
|
3602
3589
|
|
|
3603
|
-
//
|
|
3590
|
+
// horizontal + responsive: stack actions below title on small screens
|
|
3604
3591
|
return (
|
|
3605
3592
|
<>
|
|
3606
3593
|
{renderDesktopActions()}
|
|
@@ -3637,7 +3624,7 @@ const PageHeader = React.forwardRef(
|
|
|
3637
3624
|
|
|
3638
3625
|
{/* Content Section: Title + Description */}
|
|
3639
3626
|
<div className="flex-1 min-w-0">
|
|
3640
|
-
<div className="flex
|
|
3627
|
+
<div className="flex h-auto items-center gap-2 sm:min-h-10">
|
|
3641
3628
|
<h1 className="m-0 text-lg font-semibold leading-none text-semantic-text-primary truncate">
|
|
3642
3629
|
{title}
|
|
3643
3630
|
</h1>
|
package/package.json
CHANGED