Skip to content

Commit

Permalink
wip: Explore nest Columns fixes
Browse files Browse the repository at this point in the history
The relocated styles may need to be separate from the top-level block
list element, as the styles may conflict with other styles. It does not
fix Columns, however.
  • Loading branch information
dcalhoun committed May 10, 2023
1 parent 3a0d6c9 commit 81e8d51
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions packages/block-editor/src/components/block-list/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,25 +314,34 @@ export default function BlockList( {
),
{ flex: 0 },
styles.overflowVisible,
horizontal && styles.horizontalContentContainer,
isWider( blockWidth, 'medium' ) &&
( isContentStretch && isMultiBlocks
? styles.horizontalContentContainerStretch
: styles.horizontalContentContainerCenter ),
] }
>
{ blockClientIds.map( ( currentClientId, index ) =>
renderItem( {
item: currentClientId,
index,
} )
) }
<Footer
addBlockToEndOfPost={ addBlockToEndOfPost }
isReadOnly={ isReadOnly }
renderFooterAppender={ renderFooterAppender }
withFooter={ withFooter }
/>
<View
style={ [
horizontal &&
styles.horizontalContentContainer,
isWider( blockWidth, 'medium' ) &&
( isContentStretch && isMultiBlocks
? styles.horizontalContentContainerStretch
: styles.horizontalContentContainerCenter ),
] }
>
{ blockClientIds.map(
( currentClientId, index ) =>
renderItem( {
item: currentClientId,
index,
} )
) }
<Footer
addBlockToEndOfPost={ addBlockToEndOfPost }
isReadOnly={ isReadOnly }
renderFooterAppender={
renderFooterAppender
}
withFooter={ withFooter }
/>
</View>
</View>
) : (
<EmptyList
Expand Down

0 comments on commit 81e8d51

Please sign in to comment.