Improve desktop UX (#4262)

* wip

* wip

* wip

* wip

* wip

* wip

* Merge

* wip

* wip

* wip

* wip

* wip

* wip
This commit is contained in:
syuilo 2019-02-15 05:08:59 +09:00 committed by GitHub
parent 38ca514f53
commit 53422ffcb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 1132 additions and 1222 deletions

View file

@ -10,7 +10,6 @@ const defaultSettings = {
home: null,
mobileHome: [],
deck: null,
deckNav: true,
keepCw: false,
tagTimelines: [],
fetchOnScroll: true,
@ -67,8 +66,7 @@ const defaultDeviceSettings = {
deckColumnAlign: 'center',
deckColumnWidth: 'normal',
mobileNotificationPosition: 'bottom',
deckTemporaryColumn: null,
deckDefault: false,
deckMode: false,
useOsDefaultEmojis: false,
disableShowingAnimatedImages: false
};
@ -82,7 +80,6 @@ export default (os: MiOS) => new Vuex.Store({
i: null,
indicate: false,
uiHeaderHeight: 0,
navHook: null,
behindNotes: []
},
@ -107,10 +104,6 @@ export default (os: MiOS) => new Vuex.Store({
state.uiHeaderHeight = height;
},
navHook(state, callback) {
state.navHook = callback;
},
pushBehindNote(state, note) {
if (note.userId === state.i.id) return;
if (state.behindNotes.some(n => n.id === note.id)) return;