diff --git a/packages/hawtio/src/plugins/shared/attributes/AttributeTable.css b/packages/hawtio/src/plugins/shared/attributes/AttributeTable.css index d1f251b3..a611904b 100644 --- a/packages/hawtio/src/plugins/shared/attributes/AttributeTable.css +++ b/packages/hawtio/src/plugins/shared/attributes/AttributeTable.css @@ -1,3 +1,6 @@ .attribute-table > tr > th { max-width: none; } +#attribute-table-with-panel { + height: 75vh; +} diff --git a/packages/hawtio/src/plugins/shared/attributes/AttributeTable.tsx b/packages/hawtio/src/plugins/shared/attributes/AttributeTable.tsx index a7a3f335..58b2ff5d 100644 --- a/packages/hawtio/src/plugins/shared/attributes/AttributeTable.tsx +++ b/packages/hawtio/src/plugins/shared/attributes/AttributeTable.tsx @@ -2,7 +2,7 @@ import { PluginNodeSelectionContext } from '@hawtiosrc/plugins/context' import { JmxContentMBeans } from '@hawtiosrc/plugins/shared/JmxContentMBeans' import { AttributeValues } from '@hawtiosrc/plugins/shared/jolokia-service' import { humanizeLabels } from '@hawtiosrc/util/strings' -import { Card } from '@patternfly/react-core' +import { Panel } from '@patternfly/react-core' import { TableComposable, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table' import { Response } from 'jolokia.js' import React, { useContext, useEffect, useState } from 'react' @@ -106,7 +106,7 @@ export const AttributeTable: React.FunctionComponent = () => { const labels = Object.keys(attributesEntries[0] ?? {}) return ( - + @@ -125,6 +125,6 @@ export const AttributeTable: React.FunctionComponent = () => { ))} - + ) } diff --git a/packages/hawtio/src/plugins/shared/attributes/Attributes.tsx b/packages/hawtio/src/plugins/shared/attributes/Attributes.tsx index e6aedef6..23d21eca 100644 --- a/packages/hawtio/src/plugins/shared/attributes/Attributes.tsx +++ b/packages/hawtio/src/plugins/shared/attributes/Attributes.tsx @@ -1,7 +1,7 @@ import { PluginNodeSelectionContext } from '@hawtiosrc/plugins/context' import { AttributeValues } from '@hawtiosrc/plugins/shared/jolokia-service' import { isObject, objectSorter } from '@hawtiosrc/util/objects' -import { Card, Drawer, DrawerContent, DrawerContentBody } from '@patternfly/react-core' +import { Drawer, DrawerContent, DrawerContentBody, Panel } from '@patternfly/react-core' import { TableComposable, Tbody, Td, Th, Thead, ThProps, Tr } from '@patternfly/react-table' import React, { useContext, useEffect, useState } from 'react' import { HawtioEmptyCard } from '../HawtioEmptyCard' @@ -9,6 +9,7 @@ import { HawtioLoadingCard } from '../HawtioLoadingCard' import { log } from '../globals' import { AttributeModal } from './AttributeModal' import { attributeService } from './attribute-service' +import './AttributeTable.css' export const Attributes: React.FunctionComponent = () => { const { selectedNode } = useContext(PluginNodeSelectionContext) @@ -100,7 +101,7 @@ export const Attributes: React.FunctionComponent = () => { ) const attributesTable = ( -
+
@@ -128,13 +129,13 @@ export const Attributes: React.FunctionComponent = () => { ) return ( - + {attributesTable} - + ) } diff --git a/packages/hawtio/src/plugins/shared/operations/Operations.tsx b/packages/hawtio/src/plugins/shared/operations/Operations.tsx index 787e7faf..ba877466 100644 --- a/packages/hawtio/src/plugins/shared/operations/Operations.tsx +++ b/packages/hawtio/src/plugins/shared/operations/Operations.tsx @@ -1,6 +1,6 @@ import { PluginNodeSelectionContext } from '@hawtiosrc/plugins/context' import { isEmpty } from '@hawtiosrc/util/objects' -import { Card, CardBody, DataList, Text } from '@patternfly/react-core' +import { DataList, Panel, PanelHeader, PanelMain, PanelMainBody, Text } from '@patternfly/react-core' import React, { useContext } from 'react' import { HawtioEmptyCard } from '../HawtioEmptyCard' import { OperationForm } from './OperationForm' @@ -31,15 +31,17 @@ export const Operations: React.FunctionComponent = () => { ) return ( - - + + This MBean supports the following JMX operations. Expand an item in the list to invoke that operation. - - - - - + + + + + + + ) }