From 948a65bf39ac53c57e4f6d950f22c7734d5b63a4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 28 Dec 2020 17:00:31 +0900 Subject: some fixes --- src/client/ui/deck/column.vue | 11 +++++++++-- src/client/ui/deck/deck-store.ts | 15 +++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) (limited to 'src/client/ui/deck') diff --git a/src/client/ui/deck/column.vue b/src/client/ui/deck/column.vue index 4e9d9426e6..2614eecf93 100644 --- a/src/client/ui/deck/column.vue +++ b/src/client/ui/deck/column.vue @@ -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); + } } } diff --git a/src/client/ui/deck/deck-store.ts b/src/client/ui/deck/deck-store.ts index 9bdb6c20ed..3d2e1873d3 100644 --- a/src/client/ui/deck/deck-store.ts +++ b/src/client/ui/deck/deck-store.ts @@ -1,3 +1,4 @@ +import { i18n } from '@/i18n'; import { markRaw } from 'vue'; import { Storage } from '../../pizzax'; @@ -22,11 +23,21 @@ function copy(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', -- cgit v1.2.3-freya