From 6b311c54f567ed35994313a1004b31470c8360d0 Mon Sep 17 00:00:00 2001 From: Robb Hamilton Date: Thu, 26 Feb 2026 10:43:32 -0500 Subject: [PATCH] OCPBUGS-77423: Fix extra space in PageHeading when no actions present Prevent rendering empty ActionList component when neither favorite button nor primary action is present, which was causing extra whitespace at the top of pages like the Project access tab. Co-Authored-By: Claude Sonnet 4.5 --- .../console-shared/src/components/heading/PageHeading.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/packages/console-shared/src/components/heading/PageHeading.tsx b/frontend/packages/console-shared/src/components/heading/PageHeading.tsx index 75e6a17105..4597002fdb 100644 --- a/frontend/packages/console-shared/src/components/heading/PageHeading.tsx +++ b/frontend/packages/console-shared/src/components/heading/PageHeading.tsx @@ -69,8 +69,8 @@ export const PageHeading = ({ breadcrumbs={breadcrumbs && } title={title} actionMenu={ - - {showFavoriteButton || primaryAction ? ( + showFavoriteButton || primaryAction ? ( + {showFavoriteButton && ( @@ -79,8 +79,8 @@ export const PageHeading = ({ )} {primaryAction} - ) : null} - + + ) : null } icon={icon} label={badge}