WizardLayout: fix gap between nav and sticky search on scroll
- Removed top padding from list-map scroll container (pt: 0) - Back link gets its own pt: 1.5 wrapper for breathing room - Sticky search bar now pins flush against nav when scrolled Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -177,7 +177,8 @@ const ListMapLayout: React.FC<{
|
|||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
px: { xs: 2, md: 3 },
|
px: { xs: 2, md: 3 },
|
||||||
py: 3,
|
pt: 0,
|
||||||
|
pb: 3,
|
||||||
// Thin scrollbar, hidden until hover
|
// Thin scrollbar, hidden until hover
|
||||||
scrollbarWidth: 'thin',
|
scrollbarWidth: 'thin',
|
||||||
scrollbarColor: 'transparent transparent',
|
scrollbarColor: 'transparent transparent',
|
||||||
@@ -376,7 +377,9 @@ export const WizardLayout = React.forwardRef<HTMLDivElement, WizardLayoutProps>(
|
|||||||
secondaryPanel={secondaryPanel}
|
secondaryPanel={secondaryPanel}
|
||||||
backLink={
|
backLink={
|
||||||
showBackLink && variant === 'list-map' ? (
|
showBackLink && variant === 'list-map' ? (
|
||||||
<BackLink label={backLabel} onClick={onBack} />
|
<Box sx={{ pt: 1.5 }}>
|
||||||
|
<BackLink label={backLabel} onClick={onBack} />
|
||||||
|
</Box>
|
||||||
) : undefined
|
) : undefined
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user