Merge pull request #7206 from SDA-SE/feat/techdocs-context-search-breakpoint

Make techdocs context search bar width adjust on smaller screens
This commit is contained in:
Oliver Sand
2021-09-17 14:55:02 +02:00
committed by GitHub
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)',
},
},
}));