Make techdocs context search bar width adjust on smaller screens

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-09-16 12:22:19 +02:00
parent 639a7ed79c
commit be13dfe61a
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Make techdocs context search bar width adjust on smaller screens.
@@ -64,6 +64,10 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
marginLeft: '20rem',
maxWidth: 'calc(100% - 20rem * 2 - 3rem)',
marginTop: theme.spacing(1),
'@media screen and (max-width: 76.1875em)': {
marginLeft: '10rem',
maxWidth: 'calc(100% - 10rem)',
},
},
}));