Adjust header styles
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -22,13 +22,14 @@ 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),
|
||||
height: 'fit-content',
|
||||
// Where does this number come from? :/
|
||||
minHeight: 118,
|
||||
minHeight: minHeaderHeight,
|
||||
width: '100%',
|
||||
boxShadow: '0 0 8px 3px rgba(20, 20, 20, 0.3)',
|
||||
position: 'relative',
|
||||
@@ -215,7 +216,12 @@ export const Header = ({
|
||||
/>
|
||||
<SubtitleFragment classes={classes} subtitle={subtitle} />
|
||||
</div>
|
||||
<Grid container className={classes.rightItemsBox} spacing={4}>
|
||||
<Grid
|
||||
component="div"
|
||||
container
|
||||
className={classes.rightItemsBox}
|
||||
spacing={4}
|
||||
>
|
||||
{children}
|
||||
</Grid>
|
||||
</header>
|
||||
|
||||
@@ -23,19 +23,15 @@ const useStyles = makeStyles(theme => ({
|
||||
display: 'inline-block',
|
||||
},
|
||||
label: {
|
||||
color: '#FFFFFF',
|
||||
color: theme.palette.common.white,
|
||||
fontWeight: 'bold',
|
||||
lineHeight: '16px',
|
||||
letterSpacing: 0,
|
||||
fontSize: 14,
|
||||
height: '16px',
|
||||
marginBottom: 4,
|
||||
fontSize: theme.typography.fontSize,
|
||||
marginBottom: theme.spacing(1),
|
||||
},
|
||||
value: {
|
||||
color: 'rgba(255, 255, 255, 0.8)',
|
||||
lineHeight: '16px',
|
||||
fontSize: 14,
|
||||
height: '16px',
|
||||
fontSize: theme.typography.fontSize,
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -65,8 +61,16 @@ export const HeaderLabel = ({ label, value, url }: HeaderLabelProps) => {
|
||||
return (
|
||||
<Grid item>
|
||||
<span className={classes.root}>
|
||||
<Typography className={classes.label}>{label}</Typography>
|
||||
{url ? <Link href={url}>{content}</Link> : content}
|
||||
<Typography component="span" className={classes.label}>
|
||||
{label}
|
||||
</Typography>
|
||||
{url ? (
|
||||
<Link component="span" href={url}>
|
||||
{content}
|
||||
</Link>
|
||||
) : (
|
||||
content
|
||||
)}
|
||||
</span>
|
||||
</Grid>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user