Merge pull request #7172 from overleaf/ta-pdf-viewer-backdrop-hide

Fix Logo Backdrop in PDF Viewer

GitOrigin-RevId: ae9eb98dc8a51a882354b6ddea095df2bed51346
This commit is contained in:
Timothée Alby 2022-03-23 10:20:30 +01:00 committed by Copybot
parent 0703c6d21d
commit ac3eb878d6
2 changed files with 8 additions and 2 deletions

View file

@ -1,17 +1,23 @@
import { memo, Suspense } from 'react'
import classNames from 'classnames'
import PdfLogsViewer from './pdf-logs-viewer'
import PdfViewer from './pdf-viewer'
import LoadingSpinner from '../../../shared/components/loading-spinner'
import PdfHybridPreviewToolbar from './pdf-preview-hybrid-toolbar'
import PdfPreviewToolbar from './pdf-preview-toolbar'
import { useCompileContext } from '../../../shared/context/compile-context'
const newPreviewToolbar = new URLSearchParams(window.location.search).has(
'new_preview_toolbar'
)
function PdfPreviewPane() {
const { pdfUrl } = useCompileContext()
const classes = classNames('pdf', 'full-size', {
'pdf-empty': !pdfUrl,
})
return (
<div className="pdf full-size">
<div className={classes}>
{newPreviewToolbar ? <PdfPreviewToolbar /> : <PdfHybridPreviewToolbar />}
<Suspense fallback={<LoadingPreview />}>
<div className="pdf-viewer">

View file

@ -93,7 +93,7 @@
top: @editor-toolbar-height;
}
.pdf,
.pdf-empty,
.no-history-available,
.no-file-selection,
.multi-selection-ongoing {