| Server IP : 185.208.173.17 / Your IP : 87.236.161.98 Web Server : Microsoft-IIS/10.0 System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64 User : IUSR ( 0) PHP Version : 7.4.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/parsmega.nuxt/components/comments/ |
Upload File : |
<template>
<div :class="commentRootClass">
<span class="comment__author">
{{ dataSource.authorName }}
</span>
<div v-html="dataSource.content"></div>
</div>
</template>
<script>
export default {
name: "CommentItem",
computed: {
commentRootClass() {
return {
comment: true,
"comment--response": !this.isParent,
};
},
},
props: {
dataSource: {
required: true,
},
isParent: {
default: false,
type: Boolean,
},
},
};
</script>
<style lang="scss" scoped>
.comment {
background: $color-white--dark;
border-radius: 4px;
color: $color-text--light;
font-size: 12px;
margin-bottom: $padding-default/2;
padding: $padding-default/2;
position: relative;
&--response {
margin-right: $padding-default * 2;
}
&__author {
color: $color-text;
display: block;
font-weight: bold;
}
p {
margin: 0 auto;
padding: 0;
}
}
[data-lang="en"] {
.comment {
&--response {
margin-left: $padding-default * 2;
margin-right: 0;
}
}
}
</style>