diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 27d497c29c..e4416080e3 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -158,6 +158,16 @@ common: no-notes: "投稿がありません" turn-on-darkmode: "闇に飲まれる" turn-off-darkmode: "光あれ" + deck-column-align: "デッキのカラムの配置" + deck-column-align-center: "中央" + deck-column-align-left: "左" + deck-column-align-flexible: "フレキシブル" + deck-column-width: "デッキのカラムの幅" + deck-column-width-narrow: "狭" + deck-column-width-narrower: "やや狭" + deck-column-width-normal: "普通" + deck-column-width-wider: "やや広" + deck-column-width-wide: "広" error: title: "問題が発生しました" @@ -939,16 +949,6 @@ desktop/views/components/settings.vue: show-local-renotes: "ローカルの投稿のRenoteをタイムラインに表示する" show-maps: "マップの自動展開" remain-deleted-note: "削除された投稿を表示し続ける" - deck-column-align: "デッキのカラムの配置" - deck-column-align-center: "中央" - deck-column-align-left: "左" - deck-column-align-flexible: "フレキシブル" - deck-column-width: "デッキのカラムの幅" - deck-column-width-narrow: "狭" - deck-column-width-narrower: "やや狭" - deck-column-width-normal: "普通" - deck-column-width-wider: "やや広" - deck-column-width-wide: "広" sound: "サウンド" enable-sounds: "サウンドを有効にする" @@ -1711,10 +1711,6 @@ mobile/views/pages/note.vue: prev: "前の投稿" next: "次の投稿" -mobile/views/pages/notifications.vue: - notifications: "通知" - read-all: "すべての通知を既読にしますか?" - mobile/views/pages/games/reversi.vue: reversi: "リバーシ" @@ -1803,6 +1799,7 @@ deck: direct: "ダイレクト投稿" notifications: "通知" list: "リスト" + select-list: "リストを選択してください" swap-left: "左に移動" swap-right: "右に移動" swap-up: "上に移動" diff --git a/src/client/app/common/define-widget.ts b/src/client/app/common/define-widget.ts index 5eb9718446..1efdbb1880 100644 --- a/src/client/app/common/define-widget.ts +++ b/src/client/app/common/define-widget.ts @@ -9,6 +9,10 @@ export default function (data: { widget: { type: Object }, + column: { + type: Object, + default: null + }, platform: { type: String, required: true @@ -65,10 +69,14 @@ export default function (data: { this.bakeProps(); - this.$root.api('i/update_widget', { - id: this.id, - data: this.props - }); + if (this.platform == 'deck') { + this.$store.commit('device/updateDeckColumn', this.column); + } else { + this.$root.api('i/update_widget', { + id: this.id, + data: this.props + }); + } } } }); diff --git a/src/client/app/common/views/components/menu.vue b/src/client/app/common/views/components/menu.vue index b43bec1ca3..a2124c992d 100644 --- a/src/client/app/common/views/components/menu.vue +++ b/src/client/app/common/views/components/menu.vue @@ -64,6 +64,10 @@ export default Vue.extend({ this.hukidasi = false; } + if (top < 0) { + top = 0; + } + popover.style.left = left + 'px'; popover.style.top = top + 'px'; diff --git a/src/client/app/common/views/components/renote.vue b/src/client/app/common/views/components/renote.vue index 591c546eed..58a0a26593 100644 --- a/src/client/app/common/views/components/renote.vue +++ b/src/client/app/common/views/components/renote.vue @@ -1,5 +1,5 @@ @@ -21,14 +21,12 @@ import Vue from 'vue'; import i18n from '../../../i18n'; import XColumn from './deck.column.vue'; import XNotes from './deck.notes.vue'; -import XNote from '../components/note.vue'; export default Vue.extend({ i18n: i18n(), components: { XColumn, XNotes, - XNote }, data() { diff --git a/src/client/app/desktop/views/deck/deck.notes.vue b/src/client/app/common/views/deck/deck.notes.vue similarity index 98% rename from src/client/app/desktop/views/deck/deck.notes.vue rename to src/client/app/common/views/deck/deck.notes.vue index 810addd505..f94eb8fd38 100644 --- a/src/client/app/desktop/views/deck/deck.notes.vue +++ b/src/client/app/common/views/deck/deck.notes.vue @@ -13,12 +13,12 @@ @@ -97,12 +97,8 @@ diff --git a/src/client/app/mobile/views/components/ui-container.vue b/src/client/app/mobile/views/components/ui-container.vue index 90b29d0c23..806dcc9a1d 100644 --- a/src/client/app/mobile/views/components/ui-container.vue +++ b/src/client/app/mobile/views/components/ui-container.vue @@ -1,5 +1,5 @@