From 0a3962690bcac695b6df8af67e6e3ac56949c5f2 Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 14 Aug 2020 18:43:44 +0100 Subject: [PATCH] tidy up inspector controls --- src/index.js | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/src/index.js b/src/index.js index 57b1746..869d6c4 100644 --- a/src/index.js +++ b/src/index.js @@ -100,7 +100,7 @@ registerBlockType('room-vw/iconify', { return ( - + - - - { - setAttributes({ isInline: state }); - }} - /> - { - setAttributes({ - fontUnit: state ? 'em' : 'px', - fontSize: state - ? attributes.fontSize / 16 - : attributes.fontSize * 16, - }); - }} - /> - + { + setAttributes({ + fontUnit: state ? 'em' : 'px', + fontSize: state + ? attributes.fontSize / 16 + : attributes.fontSize * 16, + }); + }} + /> + + + { + setAttributes({ isInline: state }); + }} + /> +

Color

+

Rotate

+

Flip

+

Etc