콘텐츠 댓글 리스트

- 비밀댓글은 닉네임 옆에 '비밀댓글' 마크 추가
This commit is contained in:
Yu Sung
2024-08-30 17:47:44 +09:00
parent d1a90ad599
commit 24f09d068d
7 changed files with 61 additions and 6 deletions

View File

@@ -32,13 +32,25 @@ struct AudioContentCommentItemView: View {
.clipShape(Circle())
VStack(alignment: .leading, spacing: 0) {
Text(commentItem.nickname)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color.gray90)
HStack(spacing: 6.7) {
Text(commentItem.nickname)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color.gray90)
if commentItem.isSecret {
Text("비밀댓글")
.font(.custom(Font.medium.rawValue, size: 11))
.foregroundColor(Color.grayee)
.padding(.horizontal, 4)
.padding(.vertical, 2)
.background(Color.button.opacity(0.2))
.cornerRadius(3.3)
}
}
Text(commentItem.date)
.font(.custom(Font.medium.rawValue, size: 10.3))
.foregroundColor(Color(hex: "525252"))
.foregroundColor(Color.gray52)
.padding(.top, 4)
}