Skip to content

Commit 556b531

Browse files
committed
modify: fix to use navWidth instead of listWidth
1 parent ca904d6 commit 556b531

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

browser/main/Main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Main extends React.Component {
2626
this.state = {
2727
isRightSliderFocused: false,
2828
listWidth: config.listWidth,
29-
navWidth: config.listWidth,
29+
navWidth: config.navWidth,
3030
isLeftSliderFocused: false
3131
}
3232
}
@@ -109,10 +109,10 @@ class Main extends React.Component {
109109
let { dispatch } = this.props
110110
let navWidth = this.state.navWidth
111111
// TODO: ConfigManager should dispatch itself.
112-
ConfigManager.set({listWidth: navWidth})
112+
ConfigManager.set({ navWidth })
113113
dispatch({
114114
type: 'SET_NAV_WIDTH',
115-
listWidth: navWidth
115+
navWidth,
116116
})
117117
})
118118
}

browser/main/lib/ConfigManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let isInitialized = false
1010
export const DEFAULT_CONFIG = {
1111
zoom: 1,
1212
isSideNavFolded: false,
13-
listWidth: 200,
13+
listWidth: 280,
1414
navWidth: 200,
1515
sortBy: 'UPDATED_AT', // 'CREATED_AT', 'UPDATED_AT', 'APLHABETICAL'
1616
listStyle: 'DEFAULT', // 'DEFAULT', 'SMALL'

0 commit comments

Comments
 (0)