funkhaus / wp-gql-gutenberg

GNU General Public License v3.0
4 stars 3 forks source link

Added default columns to gallery block #50

Closed rsm0128 closed 1 year ago

rsm0128 commented 1 year ago

Fix #49 For the core/gallery block, default columns value is determined by JS and it's not available in json data.

js/dist/block-library.js line 16737

function defaultColumnsNumber(imageCount) {
    return imageCount ? Math.min(3, imageCount) : 3;
}