Skip to content

Commit

Permalink
[RNMobile] Fix broken "Link To" settings and add "Image Size" settings (
Browse files Browse the repository at this point in the history
#40947)

Fixes the native version of the Gallery block's broken Link To settings and also adds Image Size settings.
  • Loading branch information
Siobhan Bamber authored May 10, 2022
1 parent 681cde2 commit 9e1ad7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/use-get-media.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function useGetMedia( innerBlockImages ) {

return select( coreStore ).getMediaItems( {
include: imageIds.join( ',' ),
per_page: -1,
per_page: imageIds.length,
orderby: 'include',
} );
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function useShortCodeTransform( shortCodeTransforms ) {

return select( coreStore ).getMediaItems( {
include: imageIds.join( ',' ),
per_page: -1,
per_page: imageIds.length,
orderby: 'include',
} );
},
Expand Down
1 change: 1 addition & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ For each user feature we should also add a importance categorization label to i

- [**] [Buttons block] Fix Android-only issue related to displaying formatting buttons after closing the block settings [#40725]
- [**] [Cover block] Improve color contrast between background and text [#40691]
- [*] [Gallery block] Fix broken "Link To" settings and add "Image Size" settings [#40947]

## 1.75.0

Expand Down

0 comments on commit 9e1ad7c

Please sign in to comment.