diff --git a/app/lib/actions/ui.js b/app/lib/actions/ui.js index 2bc78d77..68e55375 100644 --- a/app/lib/actions/ui.js +++ b/app/lib/actions/ui.js @@ -24,10 +24,10 @@ export function increaseFontSize () { effect () { const state = getState(); const old = state.ui.fontSizeOverride || state.ui.fontSize; - const size = old + 1; + const value = old + 1; dispatch({ type: UI_FONT_SIZE_SET, - size + value }); } }); @@ -41,10 +41,10 @@ export function decreaseFontSize () { effect () { const state = getState(); const old = state.ui.fontSizeOverride || state.ui.fontSize; - const size = old + 1; + const value = old - 1; dispatch({ type: UI_FONT_SIZE_SET, - size + value }); } }); diff --git a/app/lib/containers/notifications.js b/app/lib/containers/notifications.js index 5066047e..b127bc28 100644 --- a/app/lib/containers/notifications.js +++ b/app/lib/containers/notifications.js @@ -10,7 +10,7 @@ const NotificationsContainer = connect( const state_ = {}; if (notifications.font) { - const fontSize = ui.fontSize; + const fontSize = ui.fontSizeOverride || ui.fontSize; Object.assign(state_, { fontShowing: true, diff --git a/app/lib/index.js b/app/lib/index.js index f9f43c99..d2714297 100644 --- a/app/lib/index.js +++ b/app/lib/index.js @@ -78,7 +78,7 @@ rpc.on('increase fontSize req', () => { }); rpc.on('decrease fontSize req', () => { - store_.dispatch(uiActions.resetFontSize()); + store_.dispatch(uiActions.decreaseFontSize()); }); rpc.on('move left req', () => { diff --git a/app/lib/reducers/ui.js b/app/lib/reducers/ui.js index b8d1d7a7..05b87323 100644 --- a/app/lib/reducers/ui.js +++ b/app/lib/reducers/ui.js @@ -183,7 +183,7 @@ const reducer = (state = initial, action) => { break; case UI_FONT_SIZE_SET: - state_ = state.set('fontSizeOverride', state.value); + state_ = state.set('fontSizeOverride', action.value); break; case UI_FONT_SIZE_RESET: