2018-08-28 15:44:36 +02:00
|
|
|
<h2 class="sr-only">Description</h2>
|
2018-04-01 01:51:18 +02:00
|
|
|
<div class="account-profile-note">
|
2018-05-02 02:05:36 +02:00
|
|
|
{@html massagedNote}
|
2018-04-01 01:51:18 +02:00
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.account-profile-note {
|
|
|
|
grid-area: note;
|
|
|
|
padding: 10px 0;
|
|
|
|
font-size: 0.9em;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.account-profile-note p) {
|
|
|
|
margin: 0 0 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.account-profile-note p:first-child) {
|
|
|
|
margin: 0 0 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
:global(.account-profile-note p:last-child) {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
.account-profile-note {
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
2018-08-23 23:47:33 +02:00
|
|
|
import { store } from '../../_store/store'
|
|
|
|
import { massageUserText } from '../../_utils/massageUserText'
|
|
|
|
|
2018-04-01 01:51:18 +02:00
|
|
|
export default {
|
2018-08-23 23:47:33 +02:00
|
|
|
store: () => store,
|
2018-04-01 01:51:18 +02:00
|
|
|
computed: {
|
2018-05-02 02:05:36 +02:00
|
|
|
note: ({ account }) => account.note,
|
2018-08-23 23:47:33 +02:00
|
|
|
emojis: ({ account }) => account.emojis || [],
|
|
|
|
massagedNote: ({ note, emojis, $autoplayGifs }) => massageUserText(note, emojis, $autoplayGifs)
|
2018-04-01 01:51:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|