-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] Missing MuiDataGrid-cell--withRightBorder
class on last cell in row
#15950
Comments
Hey @dhsj8405 ... the absence of the Additionally adding a border would mess with the virtualization logic and could lead to unwanted scrolling behavior. @KenanYusuf do you know of a workaround we could provide here that's not messing with it? |
MuiDataGrid-cell--withRightBorder
class on last cell in row
@dhsj8405 would applying a border-right on the data grid fix your issue? <DataGridPremium sx={{ borderRight: "1px solid e0e0e0" }} /> It's hard to advise on an exact solution without having a working reproduction. I put your code into CodeSandbox and it looks different to the image on the issue. If the above solution does not work, please could you fork this example and update it to match what you have in the screenshot? https://codesandbox.io/p/sandbox/lucid-frog-yzfxsk |
It seems that there was a conflict with the styling classes from our team's publishing. Thank you for the quick response!
…-----Original Message-----
From: "Kenan ***@***.***>
To: ***@***.***>;
Cc: "donghyeon ***@***.***>; ***@***.***>;
Sent: 2024-12-21 (토) 01:39:34 (GMT+09:00)
Subject: Re: [mui/mui-x] [data grid] Missing `MuiDataGrid-cell--withRightBorder` class on last cell in row (Issue #15950)
@dhsj8405 would applying a border-right on the data grid fix your issue?
<DataGridPremium sx={{ borderRight: "1px solid e0e0e0" }} />
It's hard to advise on an exact solution without having a working reproduction. I put your code into CodeSandbox and it looks different to the image on the issue.
If the above solution does not work, please could you fork this example and update it to match what you have in the screenshot? https://codesandbox.io/p/sandbox/lucid-frog-yzfxsk
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
So, is this resolved for you @dhsj8405 ? |
Yes, the issue has been resolved
…-----Original Message-----
From: "Michel ***@***.***>
To: ***@***.***>;
Cc: "donghyeon ***@***.***>; ***@***.***>;
Sent: 2024-12-23 (Mon) 23:36:31 (GMT+09:00)
Subject: Re: [mui/mui-x] [data grid] Missing `MuiDataGrid-cell--withRightBorder` class on last cell in row (Issue #15950)
So, is this resolved for you @dhsj8405 ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @dhsj8405 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Code example
Current behavior
In the MUI DataGrid, the cells in the last column do not have the MuiDataGrid-cell--withRightBorder class applied. This results in the absence of a right-side border for those cells, despite showCellVerticalBorder being enabled.
Expected behavior
This issue is causing inconsistent styling in the DataGrid, particularly when vertical borders are expected to be displayed on all cells for a clean and structured layout. It negatively impacts the visual appearance of the grid, especially in applications that rely on strict UI alignment.
The issue persists regardless of whether columns are dynamically or statically defined. A prompt resolution or workaround would be greatly appreciated to maintain consistent UI behavior.
Context
This issue is causing inconsistent styling in the DataGrid, particularly when vertical borders are expected to be displayed on all cells for a clean and structured layout. It negatively impacts the visual appearance of the grid, especially in applications that rely on strict UI alignment.
The issue persists regardless of whether columns are dynamically or statically defined. A prompt resolution or workaround would be greatly appreciated to maintain consistent UI behavior.
Your environment
`npx @mui/envinfo`
Search keywords: withRightBorder, Last Column's Cells
The text was updated successfully, but these errors were encountered: