Skip to content

Commit 55349c2

Browse files
Add missing context for cover block
1 parent 085d98e commit 55349c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/auto-sizes/includes/improve-calculate-sizes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function auto_sizes_get_layout_width( string $alignment ): string {
260260
function auto_sizes_filter_uses_context( array $uses_context, WP_Block_Type $block_type ): array {
261261
// Define block-specific context usage.
262262
$block_specific_context = array(
263-
'core/cover' => array( 'max_alignment' ),
263+
'core/cover' => array( 'max_alignment', 'container_relative_width' ),
264264
'core/image' => array( 'max_alignment', 'container_relative_width' ),
265265
'core/group' => array( 'max_alignment' ),
266266
'core/columns' => array( 'max_alignment', 'container_relative_width' ),

0 commit comments

Comments
 (0)