1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +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

@@ -31,7 +31,7 @@ const propTypes = {
const { isStarred, isLocked, lockedByMe,
repoID, filePath, filePerm, enableWatermark, userNickName,
fileName, repoEncrypted, isRepoAdmin
fileName, repoEncrypted, isRepoAdmin, fileType
} = window.app.pageOptions;
class FileView extends React.Component {
@@ -146,7 +146,7 @@ class FileView extends React.Component {
/>
}
</div>
<div className={`file-view-body flex-auto d-flex o-hidden ${(isOnlyofficeFile && !isHeaderShown) ? 'position-relative' : ''}`}>
<div className={`file-view-body flex-auto d-flex ${fileType == 'PDF' ? '' : 'o-hidden'} ${(isOnlyofficeFile && !isHeaderShown) ? 'position-relative' : ''}`}>
{(isOnlyofficeFile && !isHeaderShown) &&
<IconButton
id="unfold-onlyoffice-file-view-header"