From 211981ac7c9b8a4c369cdd71d7a3a19fee7e609e Mon Sep 17 00:00:00 2001 From: Alexandra Nyitraiova Date: Thu, 15 Jun 2017 17:10:25 +0200 Subject: [PATCH] Style "number of posts to show" row --- blocks/library/latest-posts/index.js | 19 +++++++++++-------- blocks/library/latest-posts/style.scss | 7 +++++++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/blocks/library/latest-posts/index.js b/blocks/library/latest-posts/index.js index 2ff9bb31f6ffa0..fb8d60996324f8 100644 --- a/blocks/library/latest-posts/index.js +++ b/blocks/library/latest-posts/index.js @@ -109,14 +109,17 @@ registerBlockType( 'core/latestposts', { showHint={ false } /> - - this.changePostsToShow( this.refs[ postToShowId ].value ) } - /> +
+ + this.changePostsToShow( this.refs[ postToShowId ].value ) } + /> +
),
diff --git a/blocks/library/latest-posts/style.scss b/blocks/library/latest-posts/style.scss index e5fc7a0a6b38b2..53f5494d44fab4 100644 --- a/blocks/library/latest-posts/style.scss +++ b/blocks/library/latest-posts/style.scss @@ -14,3 +14,10 @@ .blocks-latest-posts__post-date { padding-left: 1em; } + +.editor-latest-posts__input { + width: 3em; + -webkit-border-radius: 0.3em; + -moz-border-radius: 0.3em; + border-radius: 0.3em; +} \ No newline at end of file