|
|
@@ -9,6 +9,7 @@ import { useDetachCompileContext as useCompileContext } from '../../../shared/co
|
|
|
import { useCommandProvider } from '@/features/ide-react/hooks/use-command-provider'
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
import { useLayoutContext } from '@/shared/context/layout-context'
|
|
|
+import { PdfHybridThemeButton } from './pdf-hybrid-theme-button'
|
|
|
|
|
|
type PdfViewerControlsToolbarProps = {
|
|
|
requestPresentationMode: () => void
|
|
|
@@ -91,7 +92,7 @@ function PdfViewerControlsToolbar({
|
|
|
}
|
|
|
|
|
|
const InnerControlsComponent =
|
|
|
- availableWidth >= 300
|
|
|
+ availableWidth >= 320
|
|
|
? PdfViewerControlsToolbarFull
|
|
|
: PdfViewerControlsToolbarSmall
|
|
|
|
|
|
@@ -133,6 +134,7 @@ function PdfViewerControlsToolbarFull({
|
|
|
}: InnerControlsProps) {
|
|
|
return (
|
|
|
<>
|
|
|
+ <PdfHybridThemeButton />
|
|
|
<PdfPageNumberControl
|
|
|
setPage={setPage}
|
|
|
page={page}
|
|
|
@@ -161,6 +163,7 @@ function PdfViewerControlsToolbarSmall({
|
|
|
}: InnerControlsProps) {
|
|
|
return (
|
|
|
<div className="pdfjs-viewer-controls-small">
|
|
|
+ <PdfHybridThemeButton />
|
|
|
<PdfZoomDropdown
|
|
|
requestPresentationMode={requestPresentationMode}
|
|
|
rawScale={rawScale}
|