2022-04-19 14:03:46 +00:00
|
|
|
<template>
|
2022-05-05 05:32:02 +00:00
|
|
|
<div class="comment-header px-3" v-if="boxRenderer">
|
2022-04-19 14:03:46 +00:00
|
|
|
<div class="avatar-container">
|
|
|
|
<v-img
|
|
|
|
class="avatar-thumbnail"
|
|
|
|
:src="
|
|
|
|
boxRenderer.authorThumbnail.thumbnails[
|
|
|
|
boxRenderer.authorThumbnail.thumbnails.length - 1
|
|
|
|
].url
|
|
|
|
"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-04-20 12:50:00 +00:00
|
|
|
<div
|
|
|
|
class="placeholder-text background--text"
|
|
|
|
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
|
|
|
|
v-text="
|
2022-04-19 14:03:46 +00:00
|
|
|
boxRenderer.placeholderText.runs[
|
|
|
|
boxRenderer.placeholderText.runs.length - 1
|
|
|
|
].text
|
2022-04-20 12:50:00 +00:00
|
|
|
"
|
|
|
|
></div>
|
2022-04-19 14:03:46 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-05-13 19:54:14 +00:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: ["comment"],
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
boxRenderer: null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
this.boxRenderer = this.comment?.createRenderer?.commentSimpleboxRenderer;
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2022-04-19 14:03:46 +00:00
|
|
|
<style scoped>
|
|
|
|
.entry {
|
|
|
|
width: 100%; /* Prevent Loading Weirdness */
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar-thumbnail {
|
2022-04-20 12:50:00 +00:00
|
|
|
margin-right: 1rem;
|
2022-04-19 14:03:46 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.comment-header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-basis: auto;
|
2022-04-20 12:50:00 +00:00
|
|
|
align-items: center;
|
|
|
|
padding: 10px 0;
|
2022-04-19 14:03:46 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|