1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

modify: fix to use navWidth instead of listWidth

This commit is contained in:
sota1235
2016-12-11 15:21:57 +09:00
parent ca904d69e5
commit 556b53181f
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ class Main extends React.Component {
this.state = {
isRightSliderFocused: false,
listWidth: config.listWidth,
navWidth: config.listWidth,
navWidth: config.navWidth,
isLeftSliderFocused: false
}
}
@@ -109,10 +109,10 @@ class Main extends React.Component {
let { dispatch } = this.props
let navWidth = this.state.navWidth
// TODO: ConfigManager should dispatch itself.
ConfigManager.set({listWidth: navWidth})
ConfigManager.set({ navWidth })
dispatch({
type: 'SET_NAV_WIDTH',
listWidth: navWidth
navWidth,
})
})
}

View File

@@ -10,7 +10,7 @@ let isInitialized = false
export const DEFAULT_CONFIG = {
zoom: 1,
isSideNavFolded: false,
listWidth: 200,
listWidth: 280,
navWidth: 200,
sortBy: 'UPDATED_AT', // 'CREATED_AT', 'UPDATED_AT', 'APLHABETICAL'
listStyle: 'DEFAULT', // 'DEFAULT', 'SMALL'