@@ -9,6 +9,9 @@ import { isApplicationRefreshing } from '@gitops/utils/gitops';
99import { useGitOpsTranslation } from '@gitops/utils/hooks/useGitOpsTranslation' ;
1010import { Action , K8sModel , K8sResourceCommon } from '@openshift-console/dynamic-plugin-sdk' ;
1111import {
12+ ActionList ,
13+ ActionListGroup ,
14+ ActionListItem ,
1215 Breadcrumb ,
1316 BreadcrumbItem ,
1417 Flex ,
@@ -45,7 +48,7 @@ const DetailsPageTitle: React.FC<DetailsPageTitleProps> = ({ breadcrumb, childre
4548 </ div >
4649) ;
4750
48- type ApplicationPageTitleProps = {
51+ type DetailsPageHeaderProps = {
4952 obj : K8sResourceCommon ;
5053 model : K8sModel ;
5154 name : string ;
@@ -55,7 +58,7 @@ type ApplicationPageTitleProps = {
5558 iconTitle : string ;
5659} ;
5760
58- const DetailsPageHeader : React . FC < ApplicationPageTitleProps > = ( {
61+ const DetailsPageHeader : React . FC < DetailsPageHeaderProps > = ( {
5962 obj,
6063 model,
6164 name,
@@ -80,12 +83,12 @@ const DetailsPageHeader: React.FC<ApplicationPageTitleProps> = ({
8083 Argo CD { t ( model . labelPlural ) }
8184 </ Link >
8285 </ BreadcrumbItem >
83- < BreadcrumbItem > Argo CD { t ( model . labelPlural + ' Details ' ) } </ BreadcrumbItem >
86+ < BreadcrumbItem > Argo CD { t ( model . labelPlural + ' details ' ) } </ BreadcrumbItem >
8487 </ Breadcrumb >
8588 }
8689 >
8790 < PaneHeading >
88- < Title headingLevel = "h1" >
91+ < Title headingLevel = "h1" className = "details-page-header" >
8992 < span
9093 className = "co-m-resource-icon co-m-resource-icon--lg argocd-resource-icon"
9194 title = { iconTitle }
@@ -96,14 +99,23 @@ const DetailsPageHeader: React.FC<ApplicationPageTitleProps> = ({
9699 { name ?? obj ?. metadata ?. name } { ' ' }
97100 { isApplicationRefreshing ( obj ) ? < Spinner size = "md" /> : < span > </ span > }
98101 </ span >
99- < span style = { { marginLeft : '10px' , marginBottom : '3px' } } >
102+ < span
103+ className = "details-page-header__item"
104+ style = { { marginLeft : '10px' , marginBottom : '5px' } }
105+ >
100106 < DevPreviewBadge />
101107 </ span >
102108 </ Title >
103- < div className = "co-actions" >
104- < FavoriteButton defaultName = { name ?? obj ?. metadata ?. name } />
105- < ActionsDropdown actions = { actions } isKebabToggle = { false } />
106- </ div >
109+ < ActionList className = "co-actions" >
110+ < ActionListGroup >
111+ < ActionListItem >
112+ < FavoriteButton defaultName = { name ?? obj ?. metadata ?. name } />
113+ </ ActionListItem >
114+ < ActionListItem >
115+ < ActionsDropdown actions = { actions } isKebabToggle = { false } />
116+ </ ActionListItem >
117+ </ ActionListGroup >
118+ </ ActionList >
107119 </ PaneHeading >
108120 </ DetailsPageTitle >
109121 </ div >
0 commit comments