@@ -564,7 +564,7 @@ const Pane = React.forwardRef<HTMLDivElement, React.PropsWithChildren<PageLayout
564
564
{
565
565
'aria-label' : label ,
566
566
'aria-labelledby' : labelledBy ,
567
- position : responsivePosition = undefined ,
567
+ position : responsivePosition = 'end' ,
568
568
positionWhenNarrow = 'inherit' ,
569
569
width = 'medium' ,
570
570
minWidth = 256 ,
@@ -712,10 +712,12 @@ const Pane = React.forwardRef<HTMLDivElement, React.PropsWithChildren<PageLayout
712
712
{
713
713
// Narrow viewports
714
714
display : isHidden ? 'none' : 'flex' ,
715
- order : position !== undefined ? panePositions [ position ] : undefined ,
715
+ order : panePositions [ position ] ,
716
716
width : '100%' ,
717
717
marginX : 0 ,
718
-
718
+ ...( position === 'end'
719
+ ? { flexDirection : 'column' , marginTop : SPACING_MAP [ rowGap ] }
720
+ : { flexDirection : 'column-reverse' , marginBottom : SPACING_MAP [ rowGap ] } ) ,
719
721
// Regular and wide viewports
720
722
[ `@media screen and (min-width: ${ theme . breakpoints [ 1 ] } )` ] : {
721
723
width : 'auto' ,
@@ -729,7 +731,9 @@ const Pane = React.forwardRef<HTMLDivElement, React.PropsWithChildren<PageLayout
729
731
maxHeight : 'var(--sticky-pane-height)' ,
730
732
}
731
733
: { } ) ,
732
- ...( position === 'end' ? { flexDirection : 'row' } : { flexDirection : 'row-reverse' } ) ,
734
+ ...( position === 'end'
735
+ ? { flexDirection : 'row' , marginLeft : SPACING_MAP [ columnGap ] }
736
+ : { flexDirection : 'row-reverse' , marginRight : SPACING_MAP [ columnGap ] } ) ,
733
737
} ,
734
738
} ,
735
739
sx ,
0 commit comments