[RNMobile] Adjust new borders implementations to columns PR#21073
[RNMobile] Adjust new borders implementations to columns PR#21073jbinda merged 33 commits intornmobile/column-blockfrom
Conversation
|
Size Change: 0 B Total Size: 860 kB ℹ️ View Unchanged
|
jbinda
left a comment
There was a problem hiding this comment.
I have checked the code and test on demo app. It is huge improvement about usage and brings a lot of benefits - specially in long term.
I have also left some comments with minor adjustments (discussed on a call already). Hope we will be able to merge those changes soon ! :)
packages/block-editor/src/components/block-list/block.native.scss
Outdated
Show resolved
Hide resolved
| if ( columnsInRow > 1 ) { | ||
| const margins = columnsInRow * 2 * styles.columnMargin.marginLeft; | ||
| width = ( minWidth - margins ) / Math.max( 1, columnsInRow ); |
There was a problem hiding this comment.
I have checked and this also works for more than 2 columnsInRow.
However we need to implement ideal version of FloatingToolbar because it breaks the layout when there is no enough space (it has minWIdth and the Column container is stretch to this sizes - see below screen). It's not something we need to change here just as reminder)
Selected Column with broken Columns layout

Selected Column with proper Columns layout after disable FloatingToolbar

There was a problem hiding this comment.
Yes it's known issue and exists also in buttons block

Description
This PR brings adjustments need to allow using new bordering logic inside Column Block.
Please refer to:
Original refactoring PR
Column Block PR
design note
Builds for testing:
iOS: IPA 25710
Andorid: APK 42426 (please note one issue commented here)
How has this been tested?
Checking all Column Block PR testing requirements (see Column PR description)
During those checks please keep attention to how border is changing and see if there is no "jumping" during selection change
Types of changes
Refactor - Change the way how blocks bordering style is applied.
List of changes:
Checklist: