feat: comment ui

This commit is contained in:
tim
2025-07-04 11:39:14 +08:00
parent 859799929b
commit 100bff4a26
2 changed files with 9 additions and 6 deletions

View File

@@ -1,10 +1,15 @@
<template>
<div class="info-content-container" :style="{ marginLeft: level * 20 + 'px' }">
<div
class="info-content-container"
:style="{
...(level > 0 ? { /*borderLeft: '1px solid #e0e0e0', */borderBottom: 'none' } : {})
}"
>
<div class="user-avatar-container">
<div class="user-avatar-item">
<img class="user-avatar-item-img" :src="comment.avatar" alt="avatar" />
</div>
</div>
</div>
<div class="info-content">
<div class="info-content-header">
<div class="user-name">{{ comment.userName }}</div>
@@ -78,10 +83,8 @@ export default CommentItem
.reply-toggle {
cursor: pointer;
color: var(--primary-color);
margin-top: 10px;
user-select: none;
}
.reply-list {
margin-top: 10px;
}
</style>

View File

@@ -236,7 +236,7 @@ export default {
}
</script>
<style scoped>
<style>
.post-page-container {
display: flex;
flex-direction: row;
@@ -362,9 +362,9 @@ export default {
.info-content-container {
margin-top: 20px;
display: flex;
width: 100%;
flex-direction: row;
gap: 10px;
padding: 0px;
border-bottom: 1px solid #e2e2e2;
}