Skip to content

Commit

Permalink
refactor(jmx-plugin):Change the styling to be consistent with the cam…
Browse files Browse the repository at this point in the history
…el plugin appearance
  • Loading branch information
mmelko authored and tadayosi committed Apr 24, 2024
1 parent 062c784 commit 7fe84d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
14 changes: 11 additions & 3 deletions packages/hawtio/src/plugins/jmx/JmxContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Chart, JmxContentMBeans, MBeanNode } from '@hawtiosrc/plugins/shared'
import { AttributeTable, Attributes } from '@hawtiosrc/plugins/shared/attributes'
import { Operations } from '@hawtiosrc/plugins/shared/operations'
import {
Divider,
EmptyState,
EmptyStateIcon,
EmptyStateVariant,
Nav,
NavItem,
NavList,
PageGroup,
PageNavigation,
PageSection,
PageSectionVariants,
Text,
Expand Down Expand Up @@ -86,9 +86,17 @@ export const JmxContent: React.FunctionComponent = () => {
<Title headingLevel='h1'>{selectedNode.name}</Title>
<Text component='small'>{selectedNode.objectName}</Text>
</PageSection>
<PageNavigation>{mbeanNav}</PageNavigation>
<Divider />
<PageSection type='tabs' variant={PageSectionVariants.light} hasShadowBottom>
{mbeanNav}
</PageSection>
<Divider />
</PageGroup>
<PageSection id='jmx-content-main'>
<PageSection
id='jmx-content-main'
variant={pathname.includes('chart') ? PageSectionVariants.default : PageSectionVariants.light}
hasOverflowScroll
>
<Routes>
{mbeanRoutes}
<Route key='root' path='/' element={<Navigate to={navItems[0]?.id ?? ''} />} />
Expand Down
16 changes: 7 additions & 9 deletions packages/hawtio/src/plugins/shared/attributes/Attributes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,12 @@ export const Attributes: React.FunctionComponent = () => {
</div>
)
return (
<React.Fragment>
<Panel>
<Drawer isExpanded={isModalOpen} className={'pf-m-inline-on-2xl'}>
<DrawerContent panelContent={panelContent}>
<DrawerContentBody hasPadding> {attributesTable}</DrawerContentBody>
</DrawerContent>
</Drawer>
</Panel>
</React.Fragment>
<Panel>
<Drawer isExpanded={isModalOpen} className={'pf-m-inline-on-2xl'}>
<DrawerContent panelContent={panelContent}>
<DrawerContentBody hasPadding> {attributesTable}</DrawerContentBody>
</DrawerContent>
</Drawer>
</Panel>
)
}

0 comments on commit 7fe84d3

Please sign in to comment.