diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-10-29 01:38:41 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-10-29 01:38:41 +0200 |
| commit | 500b704c0f93059b75b8943e3351cdac63270b0f (patch) | |
| tree | 799e790b4f2bf929fd3798d1b3b99473e58cab31 /src/components/status | |
| parent | 5f690145755c3972268e2750808ac98dcc17af90 (diff) | |
Fix up nsfw and some styling.
Diffstat (limited to 'src/components/status')
| -rw-r--r-- | src/components/status/status.js | 3 | ||||
| -rw-r--r-- | src/components/status/status.vue | 12 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 2842ef0f..6ee8f0dd 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -2,9 +2,6 @@ import Attachment from '../attachment/attachment.vue' const Status = { props: [ 'statusoid' ], - data: () => ({ - nsfw: true - }), computed: { retweet () { return !!this.statusoid.retweeted_status }, retweeter () { return this.statusoid.user.name }, diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 04a55f67..a6a5aac2 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -26,7 +26,7 @@ <div v-html="status.statusnet_html"></div> <div v-if='status.attachments' class='attachments'> - <attachment :nsfw="nsfw" :attachment="attachment" v-for="attachment in status.attachments"> + <attachment :status-id="status.id" :nsfw="status.nsfw" :attachment="attachment" v-for="attachment in status.attachments"> </attachment> </div> @@ -49,3 +49,13 @@ </template> <script src="./status.js" ></script> + +<style lang="scss"> + .status-el { + word-wrap: break-word; + + a { + word-break: break-all; + } + } +</style> |
