lanyon
lanyon copied to clipboard
Fix sidebar z-index
Due to the sidebar's z-index only being set to 10 when the sidebar-toggle is active, and unset when inactive, the sidebar appears to be below the other components of the main page content when sliding out of view. I fixed this by applying the z-index property to .sidebar regardless of whether sidebar-toggle is active or not.
Here's a visualization of the issue.
https://github.com/user-attachments/assets/ec9026d0-7acf-4e11-8fc4-fc78b788fd7f