While setting up an Angular Material SideNav, I noticed a small issue after creating the basic layout. There seems to be a white line on the right side when the SideNav is open, not over. Upon inspecting it in the developer tools, I found that its width is 1 pixel less than what I had set in the CSS.
The mat-sidenav width appears to be 1 pixel less than the value I specified in the CSS. Despite setting it to be 240 pixels, it shows up as 239 pixels, making it slightly smaller than expected and revealing the white space below it. Please refer to the screenshot below for more clarity:
I have created a stackblitz project to demonstrate this issue. You can view it here.