From 0140844eb0457e54a8286662a0248054e772eee8 Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 24 Oct 2018 16:00:22 -0400 Subject: [PATCH] Remove whitespace in template so we can use :empty psuedo --- .../javascripts/discourse/templates/components/d-editor.hbs | 4 +--- app/assets/stylesheets/common/d-editor.scss | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/components/d-editor.hbs b/app/assets/javascripts/discourse/templates/components/d-editor.hbs index 61e771652ea..fe677e82039 100644 --- a/app/assets/javascripts/discourse/templates/components/d-editor.hbs +++ b/app/assets/javascripts/discourse/templates/components/d-editor.hbs @@ -45,9 +45,7 @@
-
- {{{preview}}} -
+
{{{preview}}}
{{plugin-outlet name="editor-preview" classNames="d-editor-plugin"}}
diff --git a/app/assets/stylesheets/common/d-editor.scss b/app/assets/stylesheets/common/d-editor.scss index f60937da414..329fc369c70 100644 --- a/app/assets/stylesheets/common/d-editor.scss +++ b/app/assets/stylesheets/common/d-editor.scss @@ -182,6 +182,9 @@ .d-editor-preview { background-color: $primary-very-low; padding: 5px; + &:empty { + padding: 0; + } } }