0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-16 00:15:08 +00:00
VueTube/NUXT/components/Comments/commentsHeaderRenderer.vue

62 lines
1.1 KiB
Vue
Raw Normal View History

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>
<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
"
></div>
2022-04-19 14:03:46 +00:00
</div>
</template>
<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 {
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;
align-items: center;
padding: 10px 0;
2022-04-19 14:03:46 +00:00
width: 100%;
}
</style>