mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
[terms and conditions] fixup for the 'name' input in the 'add' dialog; handled 'long text' preview (#6328)
This commit is contained in:
@@ -42,7 +42,7 @@ class AddOrUpdateTermDialog extends React.Component {
|
||||
}
|
||||
|
||||
handleNameChange = (e) => {
|
||||
this.setState({name: e.target.value.trim()});
|
||||
this.setState({name: e.target.value});
|
||||
};
|
||||
|
||||
handleVersionNumberChange = (e) => {
|
||||
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
||||
import { processor } from '@seafile/seafile-editor';
|
||||
import Loading from './loading';
|
||||
|
||||
import '../css/terms-preview.css';
|
||||
|
||||
const propTypes = {
|
||||
content: PropTypes.string,
|
||||
onContentClick: PropTypes.func,
|
||||
|
3
frontend/src/css/terms-preview.css
Normal file
3
frontend/src/css/terms-preview.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.conditions-preview-container {
|
||||
word-break: break-word;
|
||||
}
|
Reference in New Issue
Block a user