Keep PDF preview mounted while not visible (#21270)

GitOrigin-RevId: 266ecbb72a5238e1e977265e56c33880ec1a54be
This commit is contained in:
Alf Eaton 2024-11-07 09:16:27 +00:00 committed by Copybot
parent db8d7a7af0
commit 9352b51d28

View file

@ -103,7 +103,7 @@ export const EditorAndPdf: FC = () => {
onExpand={handlePdfPaneExpand} onExpand={handlePdfPaneExpand}
className="ide-react-panel" className="ide-react-panel"
> >
{pdfIsOpen && <PdfPreview />} <PdfPreview />
{/* ensure that "sync to code" is available in PDF only layout */} {/* ensure that "sync to code" is available in PDF only layout */}
{pdfLayout === 'flat' && view === 'pdf' && ( {pdfLayout === 'flat' && view === 'pdf' && (
<div className="synctex-controls" hidden> <div className="synctex-controls" hidden>