Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web: Overrides few rules for PF/Table headers #1153

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions web/src/assets/styles/blocks.scss
Original file line number Diff line number Diff line change
@@ -471,16 +471,9 @@ ul[data-type="agama/list"][role="grid"] {

table[data-type="agama/tree-table"] {
th:first-child {
block-size: fit-content;
padding-inline-end: var(--spacer-normal);
}

th.fit-content {
block-size: fit-content;
overflow: visible;
text-overflow: unset;
}

/**
* Temporary PF/Table overrides for small devices
**/
5 changes: 5 additions & 0 deletions web/src/assets/styles/patternfly-overrides.scss
Original file line number Diff line number Diff line change
@@ -263,6 +263,11 @@ ul {
border-block-end: 0;
}

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

@media screen and (width <= 768px) {
.pf-m-grid-md.pf-v5-c-table tr:where(.pf-v5-c-table__tr):not(.pf-v5-c-table__expandable-row) {
padding-inline: 0;
2 changes: 1 addition & 1 deletion web/src/components/storage/ProposalResultSection.jsx
Original file line number Diff line number Diff line change
@@ -186,7 +186,7 @@ const DevicesTreeTable = ({ devicesManager }) => {
<TreeTable
columns={[
{ title: _("Device"), content: renderDeviceName },
{ title: _("Mount Point"), content: renderMountPoint, classNames: "fit-content" },
{ title: _("Mount Point"), content: renderMountPoint },
{ title: _("Details"), content: renderDetails, classNames: "details-column" },
{ title: _("Size"), content: renderSize, classNames: "sizes-column" }
]}