Skip to content

Commit

Permalink
[pdf file view] 'preparing document for printing' dialog: updated UI …
Browse files Browse the repository at this point in the history
…details
  • Loading branch information
llj committed Dec 16, 2024
1 parent 5da0732 commit 30ec2aa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/pdf-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class PDFViewer extends React.Component {
<div className="modal-content">
<div className="modal-header">
<h5 className="modal-title">{gettext('Print document')}</h5>
<button type="button" id="printCancel2" className="close sf3-font sf3-font-close" aria-label={gettext('Close')} autoFocus={false}></button>
<button type="button" id="printCancel2" className="align-self-center bg-transparent border-0 sf3-font sf3-font-x-01 modal-close" aria-label={gettext('Close')}></button>
</div>
<div className="modal-body py-6">
<p className="mb-2">
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/css/pdf-file-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ input#findInput {
font-size: inherit;
}

#printServiceDialog .modal-close {
outline: none;
}

#printServiceDialog .progress,
#printServiceDialog .progress-bar {
height: 10px;
Expand Down
11 changes: 11 additions & 0 deletions media/css/seahub_react.css
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,17 @@ a.table-sort-op:hover {
white-space: nowrap;
}

.modal-close {
color: #000;
opacity: 0.5;
font-weight: 700;
cursor: pointer;
}

.modal-close:hover {
opacity: 0.75;
}

.word-break-all {
word-break: break-all;
}
Expand Down

0 comments on commit 30ec2aa

Please sign in to comment.