라이브방
- 하트바 위치 수정 : 채팅 -> 공지 밑
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import Foundation
|
||||
|
||||
enum LiveRoomChatType: String {
|
||||
case CHAT, DONATION, JOIN, ROULETTE_DONATION, HEART
|
||||
case CHAT, DONATION, JOIN, ROULETTE_DONATION
|
||||
}
|
||||
|
||||
protocol LiveRoomChat {
|
||||
@@ -48,9 +48,3 @@ struct LiveRoomJoinChat: LiveRoomChat {
|
||||
|
||||
var type: LiveRoomChatType = .JOIN
|
||||
}
|
||||
|
||||
struct LiveRoomHeartDonationChat: LiveRoomChat {
|
||||
let nickname: String
|
||||
|
||||
var type: LiveRoomChatType = .HEART
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ import SwiftUI
|
||||
|
||||
struct LiveRoomHeartDonationChatItemView: View {
|
||||
|
||||
let chatMessage: LiveRoomHeartDonationChat
|
||||
let nickname: String
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
@@ -17,7 +17,7 @@ struct LiveRoomHeartDonationChatItemView: View {
|
||||
.font(.system(size: 12))
|
||||
.foregroundColor(Color.gray11)
|
||||
|
||||
Text(chatMessage.nickname)
|
||||
Text(nickname)
|
||||
.font(.system(size: 12, weight: .bold))
|
||||
.foregroundColor(Color(hex: "ec3aa6"))
|
||||
|
||||
@@ -26,13 +26,12 @@ struct LiveRoomHeartDonationChatItemView: View {
|
||||
.foregroundColor(Color.gray11)
|
||||
}
|
||||
.padding(.vertical, 6.7)
|
||||
.frame(width: screenSize().width - 86)
|
||||
.frame(maxWidth: .infinity)
|
||||
.background(Color.white.opacity(0.7))
|
||||
.cornerRadius(4.7)
|
||||
.padding(.leading, 20)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
LiveRoomHeartDonationChatItemView(chatMessage: LiveRoomHeartDonationChat(nickname: "닉네임"))
|
||||
LiveRoomHeartDonationChatItemView(nickname: "닉네임")
|
||||
}
|
||||
|
Reference in New Issue
Block a user