Skip to content

Commit

Permalink
Fix RSS placeholder spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed May 10, 2024
1 parent 710347c commit b6b9a5a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 23 deletions.
39 changes: 18 additions & 21 deletions packages/block-library/src/rss/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
RangeControl,
ToggleControl,
ToolbarGroup,
__experimentalHStack as HStack,
__experimentalInputControl as InputControl,
} from '@wordpress/components';
import { useState } from '@wordpress/element';
Expand Down Expand Up @@ -75,26 +74,24 @@ export default function RSSEdit( { attributes, setAttributes } ) {
onSubmit={ onSubmitURL }
className="wp-block-rss__placeholder-form"
>
<HStack wrap>
<InputControl
__next40pxDefaultSize
label={ label }
hideLabelFromVision
placeholder={ __( 'Enter URL here…' ) }
value={ feedURL }
onChange={ ( value ) =>
setAttributes( { feedURL: value } )
}
className="wp-block-rss__placeholder-input"
/>
<Button
__next40pxDefaultSize
variant="primary"
type="submit"
>
{ __( 'Apply' ) }
</Button>
</HStack>
<InputControl
__next40pxDefaultSize
label={ label }
hideLabelFromVision
placeholder={ __( 'Enter URL here…' ) }
value={ feedURL }
onChange={ ( value ) =>
setAttributes( { feedURL: value } )
}
className="wp-block-rss__placeholder-input"
/>
<Button
__next40pxDefaultSize
variant="primary"
type="submit"
>
{ __( 'Apply' ) }
</Button>
</form>
</Placeholder>
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/rss/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
}

.wp-block-rss__placeholder-input {
flex: 1;
min-width: 80%;
margin: 0 8px 0 0;
flex: 1 1 auto;
}
}

0 comments on commit b6b9a5a

Please sign in to comment.