diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-07-17 23:18:05 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-07-17 23:18:05 +0900 |
| commit | 8f3ca867d2e03f8ee376d1f4fa9b1cc241af8376 (patch) | |
| tree | a0164c4c1b772dd35b65711e9e69893327099f8d /packages/client/src/ui | |
| parent | enhance(client): tweak ui (diff) | |
| download | sharkey-8f3ca867d2e03f8ee376d1f4fa9b1cc241af8376.tar.gz sharkey-8f3ca867d2e03f8ee376d1f4fa9b1cc241af8376.tar.bz2 sharkey-8f3ca867d2e03f8ee376d1f4fa9b1cc241af8376.zip | |
enhance(client): tweak ui
Diffstat (limited to 'packages/client/src/ui')
| -rw-r--r-- | packages/client/src/ui/deck/column.vue | 53 |
1 files changed, 29 insertions, 24 deletions
diff --git a/packages/client/src/ui/deck/column.vue b/packages/client/src/ui/deck/column.vue index 1a1bd7d266..7b30ffad45 100644 --- a/packages/client/src/ui/deck/column.vue +++ b/packages/client/src/ui/deck/column.vue @@ -128,31 +128,36 @@ function getMenu() { if (canceled) return; updateColumn(props.column.id, result); }, - }, null, { - icon: 'fas fa-arrow-left', - text: i18n.ts._deck.swapLeft, - action: () => { - swapLeftColumn(props.column.id); - }, }, { - icon: 'fas fa-arrow-right', - text: i18n.ts._deck.swapRight, - action: () => { - swapRightColumn(props.column.id); - }, - }, props.isStacked ? { - icon: 'fas fa-arrow-up', - text: i18n.ts._deck.swapUp, - action: () => { - swapUpColumn(props.column.id); - }, - } : undefined, props.isStacked ? { - icon: 'fas fa-arrow-down', - text: i18n.ts._deck.swapDown, - action: () => { - swapDownColumn(props.column.id); - }, - } : undefined, null, { + type: 'parent', + text: i18n.ts.move + '...', + icon: 'fas fa-arrows-up-down-left-right', + children: [{ + icon: 'fas fa-arrow-left', + text: i18n.ts._deck.swapLeft, + action: () => { + swapLeftColumn(props.column.id); + }, + }, { + icon: 'fas fa-arrow-right', + text: i18n.ts._deck.swapRight, + action: () => { + swapRightColumn(props.column.id); + }, + }, props.isStacked ? { + icon: 'fas fa-arrow-up', + text: i18n.ts._deck.swapUp, + action: () => { + swapUpColumn(props.column.id); + }, + } : undefined, props.isStacked ? { + icon: 'fas fa-arrow-down', + text: i18n.ts._deck.swapDown, + action: () => { + swapDownColumn(props.column.id); + }, + } : undefined], + }, { icon: 'fas fa-window-restore', text: i18n.ts._deck.stackLeft, action: () => { |