Commit eb830c75872a43365ae189ccc32f9c874a4e8253
width
Joran committed on 11/15/2017, 1:31:15 AMParent: b65df85068d01bbc7fd6b0ba8686cccbae6928ee
Files changed
src/components/Message.vue | changed |
src/components/Message.vue | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 … | |
2 | 2 … | <template> |
3 | 3 … | <div class="media"> |
4 | - <img :src="image_url"></img> | |
4 … | + <img :src="image_url" style="max-width: 80px"></img> | |
5 | 5 … | |
6 | 6 … | |
7 | 7 … | <div class="media-body"> |
8 | 8 … | <h5 class="mt-0">{{ author }}</h5> |
@@ -45,14 +45,10 @@ | ||
45 | 45 … | return |
46 | 46 … | this.author = nn( a[0] ).name() |
47 | 47 … | }, |
48 | 48 … | |
49 | - set_image_url(err, a){ | |
50 | - console.log("Set image URL") | |
51 | - console.log(err, a) | |
52 | - // this.image_url = a | |
53 | - }, | |
54 | 49 … | |
50 … | + | |
55 | 51 … | // Get markdown formatted version of message content |
56 | 52 … | content_text() |
57 | 53 … | { |
58 | 54 … | return md.block( this.message.value.content.text() ) |
@@ -63,12 +59,10 @@ | ||
63 | 59 … | this.$depject_api.signifier[0]( |
64 | 60 … | this.message.value.author(), this.setAuthor |
65 | 61 … | ), |
66 | 62 … | |
67 | - // this.$depject_api.avatar[0]("@TXKFQehlyoSn8UJAIVP/k2BjFINC591MlBC2e2d24mA=.ed25519")} | |
68 | - // this.image_url = "face" | |
69 | 63 … | this.image_url = this.$depject_api.avatar_image[0]( |
70 | - this.message.value.author(), this.set_image_url, this.set_image_url | |
64 … | + this.message.value.author() | |
71 | 65 … | ) |
72 | 66 … | } |
73 | 67 … | } |
74 | 68 … |
Built with git-ssb-web