Merge pull request #7146 from backstage/bugfix-page-header-height
fix: remove hardcoded min height in page header
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core-components': patch
|
||||
---
|
||||
|
||||
remove hard coded min height in page header
|
||||
@@ -22,13 +22,10 @@ import { Helmet } from 'react-helmet';
|
||||
import { Link } from '../../components/Link';
|
||||
import { Breadcrumbs } from '../Breadcrumbs';
|
||||
|
||||
const minHeaderHeight = 118;
|
||||
|
||||
const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
header: {
|
||||
gridArea: 'pageHeader',
|
||||
padding: theme.spacing(3),
|
||||
minHeight: minHeaderHeight,
|
||||
width: '100%',
|
||||
boxShadow: '0 0 8px 3px rgba(20, 20, 20, 0.3)',
|
||||
position: 'relative',
|
||||
@@ -44,7 +41,6 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
leftItemsBox: {
|
||||
maxWidth: '100%',
|
||||
flexGrow: 1,
|
||||
marginBottom: theme.spacing(1),
|
||||
},
|
||||
rightItemsBox: {
|
||||
width: 'auto',
|
||||
@@ -53,11 +49,13 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
color: theme.palette.bursts.fontColor,
|
||||
wordBreak: 'break-all',
|
||||
fontSize: 'calc(24px + 6 * ((100vw - 320px) / 680))',
|
||||
marginBottom: theme.spacing(1),
|
||||
marginBottom: 0,
|
||||
},
|
||||
subtitle: {
|
||||
color: 'rgba(255, 255, 255, 0.8)',
|
||||
lineHeight: '1.0em',
|
||||
display: 'inline-block', // prevents margin collapse of adjacent siblings
|
||||
marginTop: theme.spacing(1),
|
||||
},
|
||||
type: {
|
||||
textTransform: 'uppercase',
|
||||
|
||||
Reference in New Issue
Block a user