Hide scrollbar of sidebar
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
'@backstage/core': minor
|
||||
---
|
||||
|
||||
Closes #3556
|
||||
The scrollbar of collapsed sidebar is now hidden wihtout full screen.
|
||||
|
||||

|
||||
@@ -39,6 +39,8 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
padding: 0,
|
||||
background: theme.palette.navigation.background,
|
||||
overflowX: 'hidden',
|
||||
msOverflowStyle: 'none',
|
||||
scrollbarWidth: 'none',
|
||||
width: sidebarConfig.drawerWidthClosed,
|
||||
transition: theme.transitions.create('width', {
|
||||
easing: theme.transitions.easing.sharp,
|
||||
@@ -47,6 +49,9 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
'& > *': {
|
||||
flexShrink: 0,
|
||||
},
|
||||
'&::-webkit-scrollbar': {
|
||||
display: 'none',
|
||||
},
|
||||
},
|
||||
drawerOpen: {
|
||||
width: sidebarConfig.drawerWidthOpen,
|
||||
|
||||
Reference in New Issue
Block a user