summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/components/note.vue
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-01-06 12:56:13 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-01-06 12:56:13 +0900
commita479e65f3e2ec7b6028c886d1d998a32927c8f48 (patch)
tree234d32db1cf35ba3067bd29e6f6b9caeb69138de /src/client/app/desktop/views/components/note.vue
parentFix #3827 (#3837) (diff)
downloadmisskey-a479e65f3e2ec7b6028c886d1d998a32927c8f48.tar.gz
misskey-a479e65f3e2ec7b6028c886d1d998a32927c8f48.tar.bz2
misskey-a479e65f3e2ec7b6028c886d1d998a32927c8f48.zip
Compact URL preview (#3835)
* Compact url-preview * fix header * increase limit * better limit * Revert "better limit" This reverts commit ef396f773394068b0b7e37fccff31c70661b3978. ハードリミットかけるならサーバー上でかけたほうが良さそう * Revert "increase limit" This reverts commit 72c10a456ba37151a4d88d11544b0ff9daabd284.
Diffstat (limited to 'src/client/app/desktop/views/components/note.vue')
-rw-r--r--src/client/app/desktop/views/components/note.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/app/desktop/views/components/note.vue b/src/client/app/desktop/views/components/note.vue
index a52eaac7e9..e5f233a552 100644
--- a/src/client/app/desktop/views/components/note.vue
+++ b/src/client/app/desktop/views/components/note.vue
@@ -36,7 +36,7 @@
<mk-poll v-if="appearNote.poll" :note="appearNote" ref="pollViewer"/>
<a class="location" v-if="appearNote.geo" :href="`https://maps.google.com/maps?q=${appearNote.geo.coordinates[1]},${appearNote.geo.coordinates[0]}`" target="_blank"><fa icon="map-marker-alt"/> 位置情報</a>
<div class="renote" v-if="appearNote.renote"><mk-note-preview :note="appearNote.renote" :mini="mini"/></div>
- <mk-url-preview v-for="url in urls" :url="url" :key="url" :mini="mini"/>
+ <mk-url-preview v-for="url in urls" :url="url" :key="url" :mini="mini" :compact="compact"/>
</div>
</div>
<footer v-if="appearNote.deletedAt == null">
@@ -102,6 +102,11 @@ export default Vue.extend({
required: false,
default: false
},
+ compact: {
+ type: Boolean,
+ required: false,
+ default: false
+ },
mini: {
type: Boolean,
required: false,