Skip to content

TagSpaces is an offline, open source, document manager with tagging support

switch to full width mode on window resize

Ilian Sapundshiev73b7ba03840b
diff --git a/app/containers/MainPage.js b/app/containers/MainPage.js
index 7ee802cf9..8f0f2a10d 100644
--- a/app/containers/MainPage.js
+++ b/app/containers/MainPage.js
@@ -254,7 +254,9 @@ class MainPage extends Component<Props, State> {
// console.log('Width: ' + width + ' Height: ' + height);
this.setState({ width, height });
- // this.props.setEntryFullWidth(height > width);
+ if (this.props.isFileOpened) {
+ this.props.setEntryFullWidth(height > width);
+ }
// Hide folder container on windows resize or on mobile
// Disable due a bug with the full width functionality