Skip to content

Commit

Permalink
_Add __nextHasNoMarginBottom to components
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Oct 11, 2024
1 parent 57c2dcf commit 44c4a88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

.enable-responsive-image {

.components-base-control,
.components-base-control:last-child,
.components-base-control__field,
.components-base-control__help {
.components-base-control {
margin-bottom: 0;
}

Expand Down
3 changes: 3 additions & 0 deletions src/source-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export default function SourceEditor( {
<>
<div className="enable-responsive-image__url">{ filterURLForDisplay( srcset, 35 ) }</div>
<ToggleGroupControl
__nextHasNoMarginBottom
isBlock
label={ __( 'Media query type', 'enable-responsive-image' ) }
onChange={ onChangeMediaType }
Expand All @@ -247,6 +248,7 @@ export default function SourceEditor( {
) ) }
</ToggleGroupControl>
<RangeControl
__nextHasNoMarginBottom
label={ __( 'Media query value', 'enable-responsive-image' ) }
value={ mediaValue || DEFAULT_MEDIA_VALUE }
onChange={ onChangeMediaValue }
Expand All @@ -257,6 +259,7 @@ export default function SourceEditor( {
__next40pxDefaultSize
/>
<SelectControl
__nextHasNoMarginBottom
label={ __( 'Resolution', 'enable-responsive-image' ) }
value={ srcsetSlug }
options={ imageSizeOptions }
Expand Down

0 comments on commit 44c4a88

Please sign in to comment.