Skip to content

Commit

Permalink
sytyle(plugins): adjust padding across plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mmelko authored and tadayosi committed Apr 24, 2024
1 parent e4cf2f5 commit 6604955
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/hawtio/src/plugins/camel/CamelContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ export const CamelContent: React.FunctionComponent = () => {
<PageSection
id='camel-content-main'
variant={pathname.includes('chart') ? PageSectionVariants.default : PageSectionVariants.light}
padding={{ default: pathname.includes('chart') ? 'padding' : 'noPadding' }}
hasOverflowScroll
>
{navItems.length > 0 && (
Expand Down
1 change: 1 addition & 0 deletions packages/hawtio/src/plugins/jmx/JmxContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const JmxContent: React.FunctionComponent = () => {
<PageSection
id='jmx-content-main'
variant={pathname.includes('chart') ? PageSectionVariants.default : PageSectionVariants.light}
padding={{ default: pathname.includes('chart') ? 'padding' : 'noPadding' }}
hasOverflowScroll
>
<Routes>
Expand Down
5 changes: 4 additions & 1 deletion packages/hawtio/src/plugins/runtime/Runtime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export const Runtime: React.FunctionComponent = () => {
</PageSection>
</PageGroup>
<Divider />
<PageSection variant={location.pathname.includes('metrics') ? 'default' : 'light'}>
<PageSection
variant={location.pathname.includes('metrics') ? 'default' : 'light'}
padding={{ default: location.pathname.includes('metrics') ? 'padding' : 'noPadding' }}
>
<Routes>
{navItems.map(navItem => (
<Route key={navItem.id} path={navItem.id} element={navItem.component} />
Expand Down
1 change: 1 addition & 0 deletions packages/hawtio/src/plugins/springboot/SpringBoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const SpringBoot: React.FunctionComponent = () => {
<PageSection
aria-label='Spring-boot Content'
variant={location.pathname === '/springboot/health' ? PageSectionVariants.default : PageSectionVariants.light}
padding={{ default: location.pathname.includes('health') ? 'padding' : 'noPadding' }}
>
<Routes>
{navItems.map(navItem => (
Expand Down

0 comments on commit 6604955

Please sign in to comment.