Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pdf viewer] added loading icon; adjusted the position of the scrollb… #5583

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions frontend/src/components/pdf-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,11 @@ class PDFViewer extends React.Component {
</div>
</div>
<div id="loadingBar">
<div className="progress">
<span className="loading-icon loading-tip"></span>
{/*<div className="progress">
<div className="glimmer">
</div>
</div>
</div>*/}
</div>
</div>
</div>
Expand Down
20 changes: 18 additions & 2 deletions frontend/src/css/pdf-file-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
}

#viewerContainer {
padding: 10px 0 32px;
padding: 10px 0 0;
overflow: auto;
margin-bottom: 33px;
}

#viewerContainer:focus {
Expand Down Expand Up @@ -93,7 +94,12 @@ select#scaleSelect {
}

#loadingBar {
height: 0;
position: fixed;
top: 50%;
width: auto;
height: auto;
border: 0;
background: transparent;
}

input#pageNumber {
Expand Down Expand Up @@ -203,6 +209,16 @@ input#pageNumber {
z-index: 999; /* 1049: for seahub 'share' dialog */
}

.dirent-info .img .thumbnail {
float: none;
width: auto;
height: auto;
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
}

@media print {
#wrapper {
display: none;
Expand Down
Loading