1
0
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:
Michael An
2025-10-10 15:24:25 +08:00
committed by GitHub
parent 36ef437c68
commit 2f59447710
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;