diff --git a/locales/ja.yml b/locales/ja.yml index 366a030c9..b1df6dd85 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -379,10 +379,6 @@ desktop/views/components/note-detail.vue: renote: "Renote" add-reaction: "リアクション" -desktop/views/components/note-detail.sub.vue: - private: "この投稿は非公開です" - deleted: "この投稿は削除されました" - desktop/views/components/notes.note.vue: reposted-by: "{}がRenote" reply: "返信" diff --git a/src/client/app/common/views/components/media-list.vue b/src/client/app/common/views/components/media-list.vue index c6cb66716..2f8a1943a 100644 --- a/src/client/app/common/views/components/media-list.vue +++ b/src/client/app/common/views/components/media-list.vue @@ -23,7 +23,7 @@ export default Vue.extend({ }, mounted() { // for Safari bug - this.$refs.grid.style.height = `${this.$refs.grid.clientHeight}px`; + this.$refs.grid.style.height = this.$refs.grid.clientHeight ? `${this.$refs.grid.clientHeight}px` : '128px'; } }); diff --git a/src/client/app/desktop/views/components/note-detail.sub.vue b/src/client/app/desktop/views/components/note-detail.sub.vue deleted file mode 100644 index 00e54ff1a..000000000 --- a/src/client/app/desktop/views/components/note-detail.sub.vue +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - {{ note.user | userName }} - - - - - - - - - - - %i18n:@private% - %i18n:@deleted% - - - - - - - - - - - - - diff --git a/src/client/app/desktop/views/components/note-detail.vue b/src/client/app/desktop/views/components/note-detail.vue index a8accaf53..2f28d223d 100644 --- a/src/client/app/desktop/views/components/note-detail.vue +++ b/src/client/app/desktop/views/components/note-detail.vue @@ -89,7 +89,7 @@ import MkPostFormWindow from './post-form-window.vue'; import MkRenoteFormWindow from './renote-form-window.vue'; import MkNoteMenu from '../../../common/views/components/note-menu.vue'; import MkReactionPicker from '../../../common/views/components/reaction-picker.vue'; -import XSub from './note-detail.sub.vue'; +import XSub from './notes.note.sub.vue'; export default Vue.extend({ components: { diff --git a/src/client/app/desktop/views/components/notes.note.sub.vue b/src/client/app/desktop/views/components/notes.note.sub.vue index 4938b7984..827112ecd 100644 --- a/src/client/app/desktop/views/components/notes.note.sub.vue +++ b/src/client/app/desktop/views/components/notes.note.sub.vue @@ -115,8 +115,6 @@ root(isDark) margin-left 6px > .body - max-height 128px - overflow hidden > .text cursor default diff --git a/src/client/app/mobile/views/components/note-detail.sub.vue b/src/client/app/mobile/views/components/note-detail.sub.vue deleted file mode 100644 index 3ad5af171..000000000 --- a/src/client/app/mobile/views/components/note-detail.sub.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - {{ note.user | userName }} - - - - - - - - - - - - - - - diff --git a/src/client/app/mobile/views/components/note-detail.vue b/src/client/app/mobile/views/components/note-detail.vue index 211ca27f1..bdbb8876d 100644 --- a/src/client/app/mobile/views/components/note-detail.vue +++ b/src/client/app/mobile/views/components/note-detail.vue @@ -87,7 +87,7 @@ import parse from '../../../../../text/parse'; import MkNoteMenu from '../../../common/views/components/note-menu.vue'; import MkReactionPicker from '../../../common/views/components/reaction-picker.vue'; -import XSub from './note-detail.sub.vue'; +import XSub from './note.sub.vue'; export default Vue.extend({ components: { diff --git a/src/client/app/mobile/views/components/note.sub.vue b/src/client/app/mobile/views/components/note.sub.vue index a0084e6c2..f487b7647 100644 --- a/src/client/app/mobile/views/components/note.sub.vue +++ b/src/client/app/mobile/views/components/note.sub.vue @@ -33,7 +33,17 @@ import Vue from 'vue'; export default Vue.extend({ - props: ['note'] + props: { + note: { + type: Object, + required: true + }, + // TODO + truncate: { + type: Boolean, + default: true + } + } }); @@ -144,11 +154,8 @@ root(isDark) margin-left 6px > .body - max-height 128px - overflow hidden > .text - cursor default margin 0 padding 0 color isDark ? #959ba7 : #717171