From 64ad30718630229d257f46f5e9adcc3322ed9aac Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 19 Mar 2019 09:30:46 +0100 Subject: [PATCH] Fix basic editor styling --- .../rich-text/format-toolbar/index.js | 2 +- playground/src/common.scss | 201 ++++++++++++++++++ playground/src/editor-styles.scss | 51 +++++ playground/src/index.js | 24 ++- playground/src/style.scss | 19 ++ 5 files changed, 291 insertions(+), 6 deletions(-) create mode 100644 playground/src/common.scss create mode 100644 playground/src/editor-styles.scss create mode 100644 playground/src/style.scss diff --git a/packages/block-editor/src/components/rich-text/format-toolbar/index.js b/packages/block-editor/src/components/rich-text/format-toolbar/index.js index c1b58796268352..aa6570f620035b 100644 --- a/packages/block-editor/src/components/rich-text/format-toolbar/index.js +++ b/packages/block-editor/src/components/rich-text/format-toolbar/index.js @@ -19,7 +19,7 @@ const FormatToolbar = ( { controls } ) => { ) } - { ( fills ) => fills.length && + { ( fills ) => fills.length !== 0 && - - +
+ + + + + +
+ ); } diff --git a/playground/src/style.scss b/playground/src/style.scss new file mode 100644 index 00000000000000..703a694db017f1 --- /dev/null +++ b/playground/src/style.scss @@ -0,0 +1,19 @@ +@import "./common.scss"; +@import "./editor-styles.scss"; + +#app { + padding-top: 20px; + + img { + max-width: 100%; + height: auto; + } + + iframe { + width: 100%; + } + + .components-navigate-regions { + height: 100%; + } +}