mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
0703c6d21d
commit
ac3eb878d6
2 changed files with 8 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
top: @editor-toolbar-height;
|
||||
}
|
||||
|
||||
.pdf,
|
||||
.pdf-empty,
|
||||
.no-history-available,
|
||||
.no-file-selection,
|
||||
.multi-selection-ongoing {
|
||||
|
|
Loading…
Reference in a new issue