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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user