Merge pull request #26479 from overleaf/dp-synctex

Add synctex buttons to new editor

GitOrigin-RevId: 7790c848f96d9b12d95f2f01c5048da2ea17d8b4
This commit is contained in:
David
2025-06-17 12:47:25 +01:00
committed by Copybot
parent 6f461564d5
commit 39b4aed85f
2 changed files with 19 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ export default function MainLayout() {
tooltipWhenClosed={t('tooltip_show_pdf')}
/>
{pdfLayout === 'sideBySide' && (
<div className="synctex-controls" hidden>
<div className="synctex-controls">
<DefaultSynctexControl />
</div>
)}

View File

@@ -61,6 +61,24 @@ $editor-toggler-bg-dark-color: color.adjust(
display: none !important;
}
}
.synctex-controls {
background-color: var(--bg-primary-themed);
border-radius: var(--border-radius-full);
border: 1px solid var(--border-divider-themed);
}
.synctex-control:not(.detach-synctex-control) {
margin-bottom: 0;
background-color: transparent;
color: var(--content-primary-themed);
&:hover,
&:active,
&:focus {
background-color: var(--bg-tertiary-themed);
}
}
}
.global-alerts {