From 1163c85db640200e297292853e52510df7b59b12 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 3 Jul 2022 20:30:58 +0900 Subject: [PATCH] enhance(client): refine deck Fix #7720 --- locales/ja-JP.yml | 2 - packages/client/src/pages/settings/deck.vue | 14 -- .../client/src/pages/settings/statusbars.vue | 1 + packages/client/src/themes/_dark.json5 | 1 + packages/client/src/themes/_light.json5 | 1 + .../client/src/ui/_common_/statusbars.vue | 8 +- packages/client/src/ui/deck.vue | 120 +++++++++++------- packages/client/src/ui/deck/column.vue | 73 +++++++---- packages/client/src/ui/deck/deck-store.ts | 8 -- 9 files changed, 132 insertions(+), 96 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index bfbfff99a8..13b9fcfd47 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1721,8 +1721,6 @@ _notification: _deck: alwaysShowMainColumn: "常にメインカラムを表示" columnAlign: "カラムの寄せ" - columnMargin: "カラム間のマージン" - columnHeaderHeight: "カラムのヘッダー幅" addColumn: "カラムを追加" swapLeft: "左に移動" swapRight: "右に移動" diff --git a/packages/client/src/pages/settings/deck.vue b/packages/client/src/pages/settings/deck.vue index b1cf8a8cc9..96cb22bcaa 100644 --- a/packages/client/src/pages/settings/deck.vue +++ b/packages/client/src/pages/settings/deck.vue @@ -10,18 +10,6 @@ - - - - - - - - - - - - {{ i18n.ts._deck.profile }} @@ -41,8 +29,6 @@ import { definePageMetadata } from '@/scripts/page-metadata'; const navWindow = computed(deckStore.makeGetterSetter('navWindow')); const alwaysShowMainColumn = computed(deckStore.makeGetterSetter('alwaysShowMainColumn')); const columnAlign = computed(deckStore.makeGetterSetter('columnAlign')); -const columnMargin = computed(deckStore.makeGetterSetter('columnMargin')); -const columnHeaderHeight = computed(deckStore.makeGetterSetter('columnHeaderHeight')); const profile = computed(deckStore.makeGetterSetter('profile')); watch(navWindow, async () => { diff --git a/packages/client/src/pages/settings/statusbars.vue b/packages/client/src/pages/settings/statusbars.vue index dea5e0ffd4..18de11975f 100644 --- a/packages/client/src/pages/settings/statusbars.vue +++ b/packages/client/src/pages/settings/statusbars.vue @@ -12,6 +12,7 @@ + diff --git a/packages/client/src/themes/_dark.json5 b/packages/client/src/themes/_dark.json5 index 5c6e7755e4..88ec8a5459 100644 --- a/packages/client/src/themes/_dark.json5 +++ b/packages/client/src/themes/_dark.json5 @@ -77,6 +77,7 @@ codeString: '#ffb675', codeNumber: '#cfff9e', codeBoolean: '#c59eff', + deckDivider: '#000', htmlThemeColor: '@bg', X2: ':darken<2<@panel', X3: 'rgba(255, 255, 255, 0.05)', diff --git a/packages/client/src/themes/_light.json5 b/packages/client/src/themes/_light.json5 index 66e70d5e19..bad1291c83 100644 --- a/packages/client/src/themes/_light.json5 +++ b/packages/client/src/themes/_light.json5 @@ -77,6 +77,7 @@ codeString: '#b98710', codeNumber: '#0fbbbb', codeBoolean: '#62b70c', + deckDivider: ':darken<3<@bg', htmlThemeColor: '@bg', X2: ':darken<2<@panel', X3: 'rgba(0, 0, 0, 0.05)', diff --git a/packages/client/src/ui/_common_/statusbars.vue b/packages/client/src/ui/_common_/statusbars.vue index 11912e141b..7b3a68ec45 100644 --- a/packages/client/src/ui/_common_/statusbars.vue +++ b/packages/client/src/ui/_common_/statusbars.vue @@ -4,7 +4,8 @@ verySmall: defaultStore.reactiveState.statusbarSize.value === 'verySmall', small: defaultStore.reactiveState.statusbarSize.value === 'small', medium: defaultStore.reactiveState.statusbarSize.value === 'medium', - large: defaultStore.reactiveState.statusbarSize.value === 'large' + large: defaultStore.reactiveState.statusbarSize.value === 'large', + veryLarge: defaultStore.reactiveState.statusbarSize.value === 'veryLarge', }" >
@@ -46,6 +47,11 @@ const XUserList = defineAsyncComponent(() => import('./statusbar-user-list.vue') font-size: 0.875em; } + &.veryLarge { + --height: 30px; + font-size: 0.9em; + } + > .item { display: inline-flex; vertical-align: bottom; diff --git a/packages/client/src/ui/deck.vue b/packages/client/src/ui/deck.vue index 1cf1a14817..88fc390614 100644 --- a/packages/client/src/ui/deck.vue +++ b/packages/client/src/ui/deck.vue @@ -1,32 +1,37 @@