Skip to content

Commit d2de421

Browse files
committed
#1644: proposed solutions redesign
1 parent 20fa600 commit d2de421

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/frontend/src/layouts/PageTitle/PageTitle.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,21 @@ interface PageTitleProps {
2424
* @param tabs The tabs on the page to display.
2525
*/
2626
const PageTitle: React.FC<PageTitleProps> = ({ title, previousPages, headerRight, tabs, sticky }) => {
27+
const theme = useTheme();
28+
2729
return (
2830
<>
29-
<PageBreadcrumbs currentPageTitle={title} previousPages={previousPages} />
30-
<Box sx={{ mb: 2 }}>
31+
<Box mb={sticky ? -1 : 0}>
32+
<PageBreadcrumbs currentPageTitle={title} previousPages={previousPages} />
33+
</Box>
34+
<Box
35+
mb={2}
36+
position={sticky ? 'sticky' : 'initial'}
37+
top={65}
38+
pt={sticky ? 1 : 0}
39+
zIndex={1}
40+
bgcolor={theme.palette.background.default}
41+
>
3142
<Grid container rowSpacing={1}>
3243
<Grid item xs={6} md={4}>
3344
<Typography variant="h4" fontSize={30}>

0 commit comments

Comments
 (0)