mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 19:00:12 +00:00
txt viewer default set line wrap (#8287)
This commit is contained in:
@@ -20,7 +20,7 @@ const FileContent = ({ lineWrapping }) => {
|
||||
};
|
||||
|
||||
const SharedFileViewText = () => {
|
||||
let [lineWrapping, setLineWrapping] = useState(localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || false);
|
||||
let [lineWrapping, setLineWrapping] = useState(localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || true);
|
||||
|
||||
const updateLineWrapping = (newLineWrapping) => {
|
||||
setLineWrapping(newLineWrapping);
|
||||
|
@@ -49,7 +49,7 @@ class ViewFileText extends React.Component {
|
||||
needSave: false,
|
||||
isSaving: false,
|
||||
participants: [],
|
||||
lineWrapping: localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || false,
|
||||
lineWrapping: localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || true,
|
||||
};
|
||||
this.onSave = this.onSave.bind(this);
|
||||
this.isParticipant = false;
|
||||
|
Reference in New Issue
Block a user