summaryrefslogtreecommitdiff
path: root/packages/client/src/ui
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-07-17 23:18:05 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-07-17 23:18:05 +0900
commit8f3ca867d2e03f8ee376d1f4fa9b1cc241af8376 (patch)
treea0164c4c1b772dd35b65711e9e69893327099f8d /packages/client/src/ui
parentenhance(client): tweak ui (diff)
downloadsharkey-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.vue53
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: () => {