mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Fix view so that bib preview only shows for bib files
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user