diff --git a/frontend/src/components/dialog/lib-decrypt-dialog.js b/frontend/src/components/dialog/lib-decrypt-dialog.js index b86d33d397..cfb2fcb1b0 100644 --- a/frontend/src/components/dialog/lib-decrypt-dialog.js +++ b/frontend/src/components/dialog/lib-decrypt-dialog.js @@ -1,9 +1,11 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, Input, ModalBody, Form, FormGroup } from 'reactstrap'; -import { gettext, siteRoot } from '../../utils/constants'; +import { gettext, siteRoot, mediaUrl } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; +import '../../css/lib-decrypt.css'; + const propTypes = { repoID: PropTypes.string.isRequired, onLibDecryptDialog: PropTypes.func.isRequired @@ -56,17 +58,13 @@ class LibDecryptDialog extends React.Component {
- -

{gettext('This library is password protected')}

+ +

{gettext('This library is password protected')}

{this.state.showError &&

{gettext('Wrong password')}

} - - - - - - + +

{'* '}{gettext('The password will be kept in the server for only 1 hour.')}

diff --git a/frontend/src/css/lib-decrypt.css b/frontend/src/css/lib-decrypt.css new file mode 100644 index 0000000000..fb5316005e --- /dev/null +++ b/frontend/src/css/lib-decrypt.css @@ -0,0 +1,12 @@ +.lib-decrypt-form .intro { + color: #464646; + font-size: 1.3em; +} +.lib-decrypt-form .password-input { + width: 50%; + margin: 0 auto; +} +.lib-decrypt-form .submit { + width: 50%; + margin: 1.5em auto 1em; +}