diff --git a/web/app/components/base/file-uploader/pdf-preview.tsx b/web/app/components/base/file-uploader/pdf-preview.tsx index 1b9eca3e08f323..661ff76c0e6586 100644 --- a/web/app/components/base/file-uploader/pdf-preview.tsx +++ b/web/app/components/base/file-uploader/pdf-preview.tsx @@ -2,11 +2,13 @@ import type { FC } from 'react' import { createPortal } from 'react-dom' import 'react-pdf-highlighter/dist/style.css' import { PdfHighlighter, PdfLoader } from 'react-pdf-highlighter' -import { RiCloseLine } from '@remixicon/react' +import { t } from 'i18next' +import { RiCloseLine, RiZoomInLine, RiZoomOutLine } from '@remixicon/react' import React, { useState } from 'react' import Loading from '@/app/components/base/loading' import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints' import { useKeyboardShortcuts } from '@/hooks/use-keyboard-short' +import Tooltip from '@/app/components/base/tooltip' type PdfPreviewProps = { url: string @@ -74,12 +76,25 @@ const PdfPreview: FC = ({ }} -
- -
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
, document.body, )