Skip to content

Commit

Permalink
Merge pull request #872 from WordPress/update/block-categories-inserter
Browse files Browse the repository at this point in the history
Inserter: update categories and height
  • Loading branch information
mtias committed May 23, 2017
2 parents 92f4e29 + 27dd3ac commit 38427b6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions blocks/api/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { __ } from 'i18n';
*/
const categories = [
{ slug: 'common', title: __( 'Common Blocks' ) },
{ slug: 'formatting', title: __( 'Formatting' ) },
{ slug: 'embed', title: __( 'Embed' ) },
{ slug: 'layout', title: __( 'Layout Blocks' ) },
];

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/code/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ registerBlock( 'core/code', {

icon: 'editor-code',

category: 'common',
category: 'formatting',

attributes: {
content: prop( 'code', 'textContent' ),
Expand Down
2 changes: 1 addition & 1 deletion blocks/library/embed/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ registerBlock( 'core/embed', {

icon: 'video-alt3',

category: 'common',
category: 'embed',

attributes: {
url: attr( 'iframe', 'src' ),
Expand Down
2 changes: 1 addition & 1 deletion blocks/library/preformatted/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ registerBlock( 'core/preformatted', {

icon: 'text',

category: 'common',
category: 'formatting',

attributes: {
content: children( 'pre' ),
Expand Down
5 changes: 4 additions & 1 deletion blocks/library/pullquote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ import Editable from '../../editable';
const { children, query } = hpq;

registerBlock( 'core/pullquote', {

title: wp.i18n.__( 'Pullquote' ),

icon: 'format-quote',
category: 'common',

category: 'formatting',

attributes: {
value: query( 'blockquote > p', children() ),
Expand Down
2 changes: 1 addition & 1 deletion blocks/library/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function toggleAlignment( align ) {
registerBlock( 'core/table', {
title: wp.i18n.__( 'Table' ),
icon: 'editor-table',
category: 'common',
category: 'formatting',

attributes: {
head: query( 'thead > tr', query( 'td,th', children() ) ),
Expand Down
2 changes: 1 addition & 1 deletion editor/inserter/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
}

.editor-inserter__content {
max-height: 186px;
max-height: 20vw;
overflow: auto;

&:focus {
Expand Down

0 comments on commit 38427b6

Please sign in to comment.