1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +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 = { this.state = {
isRightSliderFocused: false, isRightSliderFocused: false,
listWidth: config.listWidth, listWidth: config.listWidth,
navWidth: config.listWidth, navWidth: config.navWidth,
isLeftSliderFocused: false isLeftSliderFocused: false
} }
} }
@@ -109,10 +109,10 @@ class Main extends React.Component {
let { dispatch } = this.props let { dispatch } = this.props
let navWidth = this.state.navWidth let navWidth = this.state.navWidth
// TODO: ConfigManager should dispatch itself. // TODO: ConfigManager should dispatch itself.
ConfigManager.set({listWidth: navWidth}) ConfigManager.set({ navWidth })
dispatch({ dispatch({
type: 'SET_NAV_WIDTH', type: 'SET_NAV_WIDTH',
listWidth: navWidth navWidth,
}) })
}) })
} }

View File

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