[Header] remove flex wrap and add max width of characters for subtitle (#9180)

This commit is contained in:
Emma Indal
2022-01-26 13:56:01 +01:00
committed by GitHub
parent e3196c6dd8
commit 1787694435
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Updates styling of Header component by removing flex wrap and add max width of characters for subtitle
@@ -49,11 +49,13 @@ const useStyles = makeStyles<BackstageTheme>(
zIndex: 100,
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap',
alignItems: 'center',
backgroundImage: theme.page.backgroundImage,
backgroundPosition: 'center',
backgroundSize: 'cover',
[theme.breakpoints.down('sm')]: {
flexWrap: 'wrap',
},
},
leftItemsBox: {
maxWidth: '100%',
@@ -73,6 +75,7 @@ const useStyles = makeStyles<BackstageTheme>(
opacity: 0.8,
display: 'inline-block', // prevents margin collapse of adjacent siblings
marginTop: theme.spacing(1),
maxWidth: '75ch',
},
type: {
textTransform: 'uppercase',