From 4a2740ba65489d6f54942d0dcb2eee9420eae910 Mon Sep 17 00:00:00 2001 From: Ankit Ahuja Date: Sun, 26 Jul 2020 00:26:51 -0700 Subject: [PATCH] change default reader mode width to 36em --- src/background/readability-settings.ts | 2 +- src/editor/store/__mocks__/state.ts | 2 +- src/editor/store/index.ts | 2 +- src/readability/components/TheReader.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/background/readability-settings.ts b/src/background/readability-settings.ts index bc470221..15715aa2 100644 --- a/src/background/readability-settings.ts +++ b/src/background/readability-settings.ts @@ -12,7 +12,7 @@ export const get = (): Promise => { resolve({ size: 16, - width: 40, + width: 36, lineHeight: 1.6, theme: 'light', font: 'Helvetica', diff --git a/src/editor/store/__mocks__/state.ts b/src/editor/store/__mocks__/state.ts index ef77fc8c..cf2854a5 100644 --- a/src/editor/store/__mocks__/state.ts +++ b/src/editor/store/__mocks__/state.ts @@ -20,7 +20,7 @@ const mockState: State = { readability: false, readabilitySettings: { size: 16, - width: 40, + width: 36, theme: 'light', font: 'Helvetica', lineHeight: 1.6, diff --git a/src/editor/store/index.ts b/src/editor/store/index.ts index 0a86f3e2..9487f5b9 100644 --- a/src/editor/store/index.ts +++ b/src/editor/store/index.ts @@ -60,7 +60,7 @@ export default new Vuex.Store({ shortcuts: new Map(), readabilitySettings: { size: 16, - width: 40, + width: 36, lineHeight: 1.6, theme: 'light', font: 'Helvetica', diff --git a/src/readability/components/TheReader.vue b/src/readability/components/TheReader.vue index ff789724..b1055d13 100644 --- a/src/readability/components/TheReader.vue +++ b/src/readability/components/TheReader.vue @@ -64,7 +64,7 @@ export default Vue.extend({ return { size: 16, font: '', - width: 40, + width: 36, theme: 'light', lineHeight: 1.6, };