diff --git a/locales/ja.yml b/locales/ja.yml index 366a030c99..b1df6dd859 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 c6cb667165..2f8a1943ad 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 00e54ff1a6..0000000000 --- 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 a8accaf531..2f28d223dd 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 4938b7984e..827112ecd8 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 3ad5af1719..0000000000 --- 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 211ca27f1c..bdbb8876df 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 a0084e6c29..f487b7647e 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