Can someone explain why my sidebar width is reduced when I apply position: fixed
? Here is the code snippet:
https://codesandbox.io/s/1yr3nlqp74
Steps to reproduce the bug:
- Open the code in a new window (full screen)
- Observe the picture before and after using
position :fixed
Before using position https://i.stack.imgur.com/ugUko.png https://i.stack.imgur.com/BjeSE.png
After using position, there seems to be a CSS issue on this line
sideBar__block: {
padding: 20,
position: "fixed",
top: "64px"
},