Skip to content

Commit

Permalink
Fix popover width regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Aug 8, 2022
1 parent 93932a0 commit e38b7a8
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ $swatch-gap: 12px;
}

.block-editor-panel-color-gradient-settings__dropdown-content {
width: ( $swatch-size * 6 ) + ( $swatch-gap * 5 ); // Ensure the popover perfectly wraps the swatches.

.block-editor-color-gradient-control__panel {
padding: $grid-unit-20;
$panelPadding: $grid-unit-20;

// Ensure the popover perfectly wraps the swatches.
width: ( $swatch-size * 6 ) + ( $swatch-gap * 5 ) + ( $panelPadding * 2 );
padding: $panelPadding;
}
}

Expand Down

0 comments on commit e38b7a8

Please sign in to comment.