From a6d184358f026adefb180eb0f3e62fd3953bdde1 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Tue, 28 Jun 2016 15:51:50 +0100 Subject: [PATCH] Avoid inline-styles. --- services/web/app/views/project/editor/pdf.jade | 3 +-- services/web/public/stylesheets/app/editor/pdf.less | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/project/editor/pdf.jade b/services/web/app/views/project/editor/pdf.jade index 66cea0f09e..77bc7cc379 100644 --- a/services/web/app/views/project/editor/pdf.jade +++ b/services/web/app/views/project/editor/pdf.jade @@ -141,7 +141,7 @@ div.full-size.pdf(ng-controller="PdfController") p.entry-content(ng-show="entry.content") {{ entry.content.trim() }} p - .pull-right + .files-dropdown-container a.btn.btn-default.btn-sm( href, tooltip="#{translate('clear_cached_files')}", @@ -152,7 +152,6 @@ div.full-size.pdf(ng-controller="PdfController") i.fa.fa-trash-o |   div.files-dropdown( - style="display: inline-block;", ng-class="shouldDropUp ? 'dropup' : 'dropdown'" dropdown ) diff --git a/services/web/public/stylesheets/app/editor/pdf.less b/services/web/public/stylesheets/app/editor/pdf.less index 2d147c2f69..7e9b1ff05c 100644 --- a/services/web/public/stylesheets/app/editor/pdf.less +++ b/services/web/public/stylesheets/app/editor/pdf.less @@ -284,3 +284,12 @@ margin-top: 20px; } } + +.files-dropdown-container { + .pull-right(); + position: relative; +} + + .files-dropdown { + display: inline-block; + }