Skip to content

Commit

Permalink
adjust table spacings and kebab font size
Browse files Browse the repository at this point in the history
  • Loading branch information
priley86 committed Apr 24, 2019
1 parent 1e27b7b commit e2369ac
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
8 changes: 3 additions & 5 deletions frontend/public/components/deployment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ const DeploymentTableRow = (o, index) => {
title: <Selector selector={o.spec.selector} namespace={o.metadata.namespace} />,
},
{
title: <div className="dropdown-kebab-pf">
<ResourceKebab actions={menuActions} kind={kind} resource={o} />
</div>,
title: <ResourceKebab actions={menuActions} kind={kind} resource={o} />,
props: { className: 'pf-c-table__action'},
},
]
Expand All @@ -180,8 +178,8 @@ const DeploymentTableHeader = props => {
const DeploymentsList = props => <React.Fragment>
<Table {...props} aria-label="Deployments" Header={DeploymentTableHeader} Rows={DeploymentTableRows} virtualize />
{/* <br />
<br />
<List {...props} Header={WorkloadListHeader} Row={Row} /> */}
<br /> */}
{/* <List {...props} Header={WorkloadListHeader} Row={Row} virtualize /> */}
</React.Fragment>;

const DeploymentsPage = props => <ListPage canCreate={true} ListComponent={DeploymentsList} {...props} />;
Expand Down
22 changes: 22 additions & 0 deletions frontend/public/style/_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -476,4 +476,26 @@ tags-input .autocomplete .suggestion-item em {
.pf-c-table .meta-status {
min-width: 100px;
}
}

// pf4 table spacings adjusted to match existing styles
.pf-c-table tr > * {
--pf-c-table-cell--PaddingLeft: 16px;
--pf-c-table-cell--PaddingRight: 16px;
--pf-c-table--m-compact-cell--first-last-child--PaddingLeft: 16px;
--pf-c-table--m-compact-cell--first-last-child--PaddingRight: 16px;
}

.pf-c-table.pf-m-compact .pf-c-table__action {
--pf-c-table__action--PaddingLeft: 16px;
--pf-c-table__action--PaddingRight: 16px;
--pf-c-table__action--PaddingTop: 8px;
--pf-c-table__action--PaddingBottom: 8px;

.pf-c-dropdown__toggle {
font-size: $font-size-base;
}
.pf-c-dropdown__menu-item {
font-size: $font-size-base;
}
}
2 changes: 1 addition & 1 deletion frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@

"@patternfly/react-virtualized-extension@git+https://git@github.com/priley86/react-virtualized-extension.git":
version "2.1.0"
resolved "git+https://git@github.com/priley86/react-virtualized-extension.git#f7c06d5333f0f6a1ff3c6c5664afa7f5d1f28b35"
resolved "git+https://git@github.com/priley86/react-virtualized-extension.git#e40440d2bd6ebbf0f3d0210074f9d50c64127344"
dependencies:
"@patternfly/patternfly" "2.4.1"
"@patternfly/react-icons" "^3.7.3"
Expand Down

0 comments on commit e2369ac

Please sign in to comment.