Skip to content

Commit 516834a

Browse files
committed
spacing for all pages on top
1 parent 62315d3 commit 516834a

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

libs/ui-components/src/components/Repository/RepositoryDetails/RepositoryDetails.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { Card, CardBody, DropdownItem, DropdownList, Grid, GridItem, Tab } from '@patternfly/react-core';
2+
import { DropdownItem, DropdownList, Grid, GridItem, Tab } from '@patternfly/react-core';
33

44
import { useFetchPeriodically } from '../../../hooks/useFetchPeriodically';
55
import { RepoSpecType, Repository, ResourceKind } from '@flightctl/types';
@@ -86,19 +86,18 @@ const RepositoryDetails = () => {
8686
element={
8787
<Grid hasGutter>
8888
<GridItem md={9}>
89-
<Card>
90-
<CardBody>
89+
<Grid hasGutter>
90+
<GridItem>
9191
<RepositoryGeneralDetailsCard repoDetails={repoDetails} />
92-
</CardBody>
93-
</Card>
94-
{canListRS && repoDetails.spec.type !== RepoSpecType.HTTP && (
95-
<Card>
96-
<CardBody>
92+
</GridItem>
93+
{canListRS && repoDetails.spec.type !== RepoSpecType.HTTP && (
94+
<GridItem>
9795
<RepositoryResourceSyncsCard repositoryId={repositoryId} />
98-
</CardBody>
99-
</Card>
100-
)}
96+
</GridItem>
97+
)}
98+
</Grid>
10199
</GridItem>
100+
102101
<GridItem md={3}>
103102
<EventsCard kind={ResourceKind.REPOSITORY} objId={repositoryId} />
104103
</GridItem>

libs/ui-components/src/components/common/PageNavigation.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.fctl-subnav_panel {
2-
--pf-v5-c-panel__main-body--PaddingTop: 0.6rem;
3-
--pf-v5-c-panel__main-body--PaddingBottom: 0.6rem;
1+
.fctl-subnav_panel .pf-v6-c-panel__main-body {
2+
padding-block-start: 0.5rem;
3+
padding-block-end: 0;
44
}
55

66
.fctl-subnav_toolbar {

0 commit comments

Comments
 (0)