-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RNMobile] Adjust new borders implementations to columns PR #21073
Conversation
Size Change: 0 B Total Size: 860 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: