Skip to content

Commit

Permalink
web: Use PF Thead#noWrap prop
Browse files Browse the repository at this point in the history
Instead of overriding CSS. It reverts #1153
  • Loading branch information
dgdavid committed May 13, 2024
1 parent d2096d1 commit 2790e46
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions web/src/assets/styles/patternfly-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,6 @@ ul {
border-block-end: 0;
}

.pf-v5-c-table tr:where(.pf-v5-c-table__tr) > th {
white-space: normal;
vertical-align: middle;
}

.pf-v5-c-radio {
align-items: center;
}
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/core/ExpandableSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import { Table, Thead, Tr, Th, Tbody, Td, ExpandableRowContent, RowSelectVariant
* @param {ExpandableSelectorColumn[]} props.columns
*/
const TableHeader = ({ columns }) => (
<Thead>
<Thead noWrap>
<Tr>
<Th />
<Th />
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/core/TreeTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function TreeTable({
isTreeTable
data-type="agama/tree-table"
>
<Thead>
<Thead noWrap>
<Tr>
{ columns.map((c, i) => <Th key={i} className={c.classNames}>{c.name}</Th>) }
</Tr>
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/storage/PartitionsField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ const VolumesTable = ({

return (
<Table aria-label={_("Table with mount points")} variant="compact" borders>
<Thead>
<Thead noWrap>
<Tr>
<Th>{columns.mountPath}</Th>
<Th>{columns.details}</Th>
Expand Down

0 comments on commit 2790e46

Please sign in to comment.