mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix sync to code from PDF only view (#16909)
GitOrigin-RevId: 3a2847716263bffaee540a7c90e609be5f64aeb6
This commit is contained in:
parent
2f803292b4
commit
45389b3db2
1 changed files with 6 additions and 0 deletions
|
@ -105,6 +105,12 @@ export const EditorAndPdf: FC<{
|
|||
className="ide-react-panel"
|
||||
>
|
||||
{pdfIsOpen && <PdfPreview />}
|
||||
{/* ensure that "sync to code" is available in PDF only layout */}
|
||||
{pdfLayout === 'flat' && view === 'pdf' && (
|
||||
<div className="synctex-controls" hidden>
|
||||
<DefaultSynctexControl />
|
||||
</div>
|
||||
)}
|
||||
</Panel>
|
||||
</PanelGroup>
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue