Skip to content

Commit

Permalink
Fixed whitespace vs tab issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwilde authored and youknowriad committed Jun 13, 2017
1 parent a789640 commit f486884
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions blocks/inspector-controls/range-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ function RangeControl( { label, value, instanceId, onChange, ...props } ) {
const id = 'inspector-range-control-' + instanceId;

return (
<div className="blocks-range-control">
<label className="blocks-range-control__label" htmlFor={ id }>{ label }</label>
<input className="blocks-range-control__input" id={ id } type="range" value={ value } onChange={ onChange } { ...props } />
<span>{ value }</span>
</div>
<div className="blocks-range-control">
<label className="blocks-range-control__label" htmlFor={ id }>{ label }</label>
<input className="blocks-range-control__input" id={ id } type="range" value={ value } onChange={ onChange } { ...props } />
<span>{ value }</span>
</div>
);
}

Expand Down
4 changes: 2 additions & 2 deletions blocks/library/gallery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ registerBlockType( 'core/gallery', {

edit( { attributes, setAttributes, focus } ) {
const { images = [], columns = defaultColumnsNumber( attributes ), align = 'none' } = attributes;
const setColumnsNumber = ( event ) => setAttributes( { columns: event.target.value } );
const setColumnsNumber = ( event ) => setAttributes( { columns: event.target.value } );
if ( images.length === 0 ) {
const setMediaUrl = ( imgs ) => setAttributes( { images: imgs } );
return (
Expand Down Expand Up @@ -156,7 +156,7 @@ registerBlockType( 'core/gallery', {
) ) }
{ focus && images.length > 1 &&
<InspectorControls>
<RangeControl label={ __( 'Columns' ) } value={ columns } onChange={ setColumnsNumber } min="1" max={ Math.min( MAX_COLUMNS, images.length ) } />
<RangeControl label={ __( 'Columns' ) } value={ columns } onChange={ setColumnsNumber } min="1" max={ Math.min( MAX_COLUMNS, images.length ) } />
</InspectorControls> }
</div>
);
Expand Down

0 comments on commit f486884

Please sign in to comment.