WizardLayout: generous padding on detail-toggles layout
- Added maxWidth: 1200px + mx: auto to constrain content width - Increased panel padding (px: 5 both sides) - Left 58% / right 42% split for better reading width - No longer edge-to-edge — content is readable and centered Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -263,14 +263,23 @@ const DetailTogglesLayout: React.FC<{
|
|||||||
secondaryPanel?: React.ReactNode;
|
secondaryPanel?: React.ReactNode;
|
||||||
backLink?: React.ReactNode;
|
backLink?: React.ReactNode;
|
||||||
}> = ({ children, secondaryPanel, backLink }) => (
|
}> = ({ children, secondaryPanel, backLink }) => (
|
||||||
<Box sx={{ display: 'flex', flex: 1, overflow: 'hidden' }}>
|
<Box
|
||||||
|
sx={{
|
||||||
|
display: 'flex',
|
||||||
|
flex: 1,
|
||||||
|
overflow: 'hidden',
|
||||||
|
maxWidth: 1200,
|
||||||
|
mx: 'auto',
|
||||||
|
width: '100%',
|
||||||
|
}}
|
||||||
|
>
|
||||||
{/* Left panel — scrollable content */}
|
{/* Left panel — scrollable content */}
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: { xs: '100%', md: '55%' },
|
width: { xs: '100%', md: '58%' },
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
px: { xs: 2, md: 4 },
|
px: { xs: 2, md: 5 },
|
||||||
pt: 0,
|
pt: 0,
|
||||||
pb: 3,
|
pb: 3,
|
||||||
scrollbarWidth: 'thin',
|
scrollbarWidth: 'thin',
|
||||||
@@ -295,9 +304,9 @@ const DetailTogglesLayout: React.FC<{
|
|||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: { xs: 'none', md: 'block' },
|
display: { xs: 'none', md: 'block' },
|
||||||
width: { md: '45%' },
|
width: { md: '42%' },
|
||||||
overflowY: 'auto',
|
overflowY: 'auto',
|
||||||
px: 4,
|
px: 5,
|
||||||
py: 3,
|
py: 3,
|
||||||
borderLeft: '1px solid',
|
borderLeft: '1px solid',
|
||||||
borderColor: 'divider',
|
borderColor: 'divider',
|
||||||
|
|||||||
Reference in New Issue
Block a user