diff --git a/services/web/app/views/project/editor/binary-file.jade b/services/web/app/views/project/editor/binary-file.jade index 19741ec6d9..c9665503d9 100644 --- a/services/web/app/views/project/editor/binary-file.jade +++ b/services/web/app/views/project/editor/binary-file.jade @@ -19,10 +19,7 @@ div.binary-file.full-size( onabort="sl_binaryFilePreviewError()" ) - p( - ng-if="(['bib'].indexOf(extension(openFile)) > -1) && !bibtex.error" - ng-init="loadBibtexFilePreview()" - ) + div(ng-if="(['bib'].indexOf(extension(openFile)) > -1) && !bibtex.error", ng-init="loadBibtexFilePreview()") div(ng-if="bibtex.loading") | #{translate('loading')}... div.bib-preview(ng-if="!bibtex.loading && !bibtex.error") diff --git a/services/web/public/coffee/ide/binary-files/controllers/BinaryFileController.coffee b/services/web/public/coffee/ide/binary-files/controllers/BinaryFileController.coffee index 2e179c5209..e914c41401 100644 --- a/services/web/public/coffee/ide/binary-files/controllers/BinaryFileController.coffee +++ b/services/web/public/coffee/ide/binary-files/controllers/BinaryFileController.coffee @@ -41,7 +41,7 @@ define [ guide = document.querySelector('.file-tree-inner') table_wrap = document.querySelector('.bib-preview .scroll-container') if table_wrap - desired_height = guide.offsetHeight - 60 + desired_height = guide.offsetHeight - 44 if table_wrap.offsetHeight > desired_height table_wrap.style.height = desired_height + 'px' table_wrap.style['max-height'] = desired_height + 'px'