Merge pull request #23333 from O5ten/fix-sidebar-scroll-wrapper

Remove -5px from SidebarScrollWrapper
This commit is contained in:
Fredrik Adelöw
2024-03-01 20:01:58 +01:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Fix a spacing issue for the SidebarSubmenu in case a SidebarScrollWrapper is used that made it hard to reach the SidebarSubmenu
@@ -701,8 +701,7 @@ export const SidebarScrollWrapper = styled('div')(({ theme }) => {
return {
flex: '0 1 auto',
overflowX: 'hidden',
// 5px space to the right of the scrollbar
width: 'calc(100% - 5px)',
width: '100%',
// Display at least one item in the container
// Question: Can this be a config/theme variable - if so, which? :/
minHeight: '48px',