Skip to content
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] Tiled Gallery Block: Aspect Ratio for Square Layout #21166

Merged
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const TiledGalleryEdit = props => {
url: image.url,
caption: image.caption,
alt: image.alt,
className: styles[ 'is-style-squared' ],
} );
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ const blockAttributes = {
},
},
},
imageCrop: {
type: 'boolean',
default: true,
},
guarani marked this conversation as resolved.
Show resolved Hide resolved
linkTo: {
default: 'none',
type: 'string',
Expand Down Expand Up @@ -292,6 +296,9 @@ export const settings = {
},
edit,
save,
providesContext: {
imageCrop: 'imageCrop',
},
deprecated,
example: {
attributes: exampleAttributes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
.horizontalBorderDark {
border-color: $gray-70;
}

.is-style-squared {
aspect-ratio: 1;
}