From 551bd73201d7af906e7d07b56165b15d9cadc860 Mon Sep 17 00:00:00 2001 From: Marek Hulan Date: Wed, 30 Sep 2015 12:55:02 +0200 Subject: [PATCH] Fixes #12005 - align host selector for template preview --- app/assets/stylesheets/editor.scss | 7 ++++++- app/views/editor/_toolbar.html.erb | 8 ++++++++ app/views/templates/_form.html.erb | 5 ----- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/editor.scss b/app/assets/stylesheets/editor.scss index d909ed2f0bf..8b6e9c7a38a 100644 --- a/app/assets/stylesheets/editor.scss +++ b/app/assets/stylesheets/editor.scss @@ -18,4 +18,9 @@ .fullscreen .editor { height: 100%; -} \ No newline at end of file +} + +span#preview_host_selector a.select2-choice { + height: 30px; + line-height: 1.2; +} diff --git a/app/views/editor/_toolbar.html.erb b/app/views/editor/_toolbar.html.erb index 37a80fa75e5..7c9d54eaa72 100644 --- a/app/views/editor/_toolbar.html.erb +++ b/app/views/editor/_toolbar.html.erb @@ -12,6 +12,14 @@ <% end %> + + <% if show_preview %> + + <% end %> + diff --git a/app/views/templates/_form.html.erb b/app/views/templates/_form.html.erb index 7f21ea73d4d..d96f55dee69 100644 --- a/app/views/templates/_form.html.erb +++ b/app/views/templates/_form.html.erb @@ -51,11 +51,6 @@
<%= render :partial => 'editor/toolbar', :locals => {:show_preview => true} %> - - <%= alert :class => 'alert-danger hide', :id => 'preview_error', :close => false %> <%= textarea_f f, :template, :class => "editor_source", :label =>:none, :disabled => @template.locked?, :size => "max", :'data-file-name' => @template.name, :'data-render-path' => url_for(template_hash_for_member(@template, 'preview')) %>