some fixes

This commit is contained in:
syuilo
2020-12-28 17:00:31 +09:00
parent 20c076b369
commit 948a65bf39
8 changed files with 92 additions and 70 deletions

View File

@@ -104,10 +104,6 @@ export default defineComponent({
this.$refs.nav.show();
},
help() {
this.$router.push('/docs/keyboard-shortcut');
},
post() {
os.post();
},

View File

@@ -316,8 +316,15 @@ export default defineComponent({
}
&.paged {
> div {
background: var(--bg);
background: var(--bg) !important;
> header {
background: transparent;
box-shadow: none;
> button {
color: var(--fg);
}
}
}

View File

@@ -1,3 +1,4 @@
import { i18n } from '@/i18n';
import { markRaw } from 'vue';
import { Storage } from '../../pizzax';
@@ -22,11 +23,21 @@ function copy<T>(x: T): T {
export const deckStore = markRaw(new Storage('deck', {
columns: {
where: 'deviceAccount',
default: [] as Column[]
default: [{
id: 'a',
type: 'main',
name: i18n.locale._deck._columns.main,
width: 350,
}, {
id: 'b',
type: 'notifications',
name: i18n.locale._deck._columns.notifications,
width: 330,
}] as Column[]
},
layout: {
where: 'deviceAccount',
default: [] as Column['id'][][]
default: [['a'], ['b']] as Column['id'][][]
},
columnAlign: {
where: 'deviceAccount',