Skip to content

Commit 9cbb3c4

Browse files
committed
fix: improve breadcrumb styling in BasePageTemplate
- Added bottom margin to breadcrumbs for consistent spacing - Conditionally applied margin when breadcrumbs are present - Enhanced visual layout of page header
1 parent 4b9bfd6 commit 9cbb3c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/base-components/BasePageTemplate.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function BasePageTemplate({
3535
<Box padding={1}>
3636
<Grid container padding={2} spacing={2}>
3737
<Grid item xs={12}>
38-
<Breadcrumbs aria-label="breadcrumb">
38+
<Breadcrumbs aria-label="breadcrumb" sx={{marginBottom: '24px'}}>
3939
{breadcrumbs?.map(breadcrumb => {
4040
if (breadcrumb.href) {
4141
return (
@@ -72,6 +72,9 @@ export function BasePageTemplate({
7272
textAlign: 'left',
7373
display: 'inline-block',
7474
fontSmooth: 'never',
75+
...(breadcrumbs && {
76+
marginBottom: '24px'
77+
}),
7578
'-webkit-font-smoothing': 'antialiased',
7679
'-moz-osx-font-smoothing': 'grayscale'
7780
}}

0 commit comments

Comments
 (0)