1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 23:56:18 +00:00

Pdf file view redesign (#7188)

* [pdf file view] added 'find' operation icon; redesigned the 'find' bar

* [pdf file view] the 'find' bar: updated the 'find previous/next' buttons; added a 'clear query' function

* [pdf file view] 'print': redesigned the 'Preparing document for printing' dialog

* [pdf file view] the 'find' bar: updated the styles of the border & the 'input'

* [pdf file view] 'preparing document for printing' dialog: updated UI details

* [pdf file view] 'preparing document for printing' dialog: modified the border & the backdrop
This commit is contained in:
llj
2024-12-17 14:45:57 +08:00
committed by GitHub
parent d3d2335fe2
commit e645b29d87
6 changed files with 225 additions and 76 deletions

View File

@@ -114,9 +114,18 @@ class FileToolbar extends React.Component {
showShareBtn = download_external_link;
}
const shortcutMain = Utils.isMac() ? '⌘ + ' : 'Ctrl + ';
return (
<Fragment>
<div className="d-none d-md-flex justify-content-between align-items-center flex-shrink-0 ml-4">
{fileType == 'PDF' && (
<IconButton
id="seafile-pdf-find"
icon="search"
text={`${gettext('Find')}(${shortcutMain}F)`}
/>
)}
{(fileType == 'PDF' && canDownloadFile) && (
<IconButton
id="seafile-pdf-print"