1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00

[PDF viewer] fixed the decryption dialog after the upgrade of seafile-ui.css(bootstrap v4 to v5) (#7630)

This commit is contained in:
llj
2025-03-17 15:47:43 +08:00
committed by GitHub
parent 61ae1a34fb
commit 2c57086489

View File

@@ -329,15 +329,15 @@ class PDFViewer extends React.Component {
</div> </div>
{/* <!-- mainContainer -->*/} {/* <!-- mainContainer -->*/}
<div id="dialogContainer"> <div id="dialogContainer" className="modal d-block">
<dialog id="passwordDialog" className="modal-dialog p-0 rounded border-0 shadow-none"> <dialog id="passwordDialog" className="modal-dialog p-0 rounded border-0 shadow-none">
<div className="modal-content"> <div className="modal-content">
<div className="modal-header"> <div className="modal-header">
<h5 className="modal-title">{gettext('Decrypt document')}</h5> <h5 className="modal-title">{gettext('Decrypt document')}</h5>
<button type="button" id="passwordCancel2" className="align-self-center bg-transparent border-0 sf3-font sf3-font-x-01 modal-close" aria-label={gettext('Close')}></button> <button type="button" id="passwordCancel2" className="align-self-center bg-transparent border-0 sf3-font sf3-font-x-01 modal-close" aria-label={gettext('Close')}></button>
</div> </div>
<div className="modal-body py-6 text-left"> <div className="modal-body py-6 text-start">
<label htmlFor="password" id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</label> <label htmlFor="password" id="passwordText" data-l10n-id="password_label" className="form-label">Enter the password to open this PDF file:</label>
<input type="password" id="password" className="form-control" /> <input type="password" id="password" className="form-control" />
</div> </div>
<div className="modal-footer"> <div className="modal-footer">