Skip to content

Commit

Permalink
Merge branch 'master' into rtl-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Sep 2, 2024
2 parents bc3e93c + 315ffa1 commit 839c456
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/new-issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
needs: issue_cleanup
if: needs.issue_cleanup.outputs.orderId != ''
uses: mui/mui-public/.github/workflows/issues_order-id-validation.yml@master
secrets: inherit
with:
orderId: ${{ needs.issue_cleanup.outputs.orderId }}
permissions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ const GridHeaderFilterCell = React.forwardRef<HTMLDivElement, GridHeaderFilterCe
style={{
height,
width,
minWidth: width,
maxWidth: width,
...styleProp,
}}
role="columnheader"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ const GridGenericColumnHeaderItem = React.forwardRef(function GridGenericColumnH
...style,
height,
width,
minWidth: width,
maxWidth: width,
}}
role="columnheader"
tabIndex={tabIndex}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,7 @@ export const GridRootStyles = styled('div', {
/* Cell styles */
[`& .${c.cell}`]: {
height: 'var(--height)',
minWidth: 'var(--width)',
maxWidth: 'var(--width)',
width: 'var(--width)',
lineHeight: 'calc(var(--height) - 1px)', // -1px for the border

boxSizing: 'border-box',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,10 @@ export const useGridColumnResize = (
refs.colDef!.flex = 0;

refs.columnHeaderElement!.style.width = `${newWidth}px`;
refs.columnHeaderElement!.style.minWidth = `${newWidth}px`;
refs.columnHeaderElement!.style.maxWidth = `${newWidth}px`;

const headerFilterElement = refs.headerFilterElement;
if (headerFilterElement) {
headerFilterElement.style.width = `${newWidth}px`;
headerFilterElement.style.minWidth = `${newWidth}px`;
headerFilterElement.style.maxWidth = `${newWidth}px`;
}

refs.groupHeaderElements!.forEach((element) => {
Expand All @@ -335,8 +331,6 @@ export const useGridColumnResize = (
}

div.style.width = finalWidth;
div.style.minWidth = finalWidth;
div.style.maxWidth = finalWidth;
});

refs.cellElements!.forEach((element) => {
Expand Down Expand Up @@ -427,8 +421,6 @@ export const useGridColumnResize = (
const finalWidth: `${number}px` = `${newWidth}px`;

div.style.width = finalWidth;
div.style.minWidth = finalWidth;
div.style.maxWidth = finalWidth;
});
}

Expand Down

0 comments on commit 839c456

Please sign in to comment.