feat(chat): 메시지 입력을 최대 세 줄로 확장한다
This commit is contained in:
@@ -136,7 +136,7 @@ struct UserCreatorChatRoomView: View {
|
||||
}
|
||||
|
||||
private var inputBarView: some View {
|
||||
HStack(spacing: SodaSpacing.s8) {
|
||||
HStack(alignment: .bottom, spacing: SodaSpacing.s8) {
|
||||
ZStack(alignment: .leading) {
|
||||
if messageText.isEmpty {
|
||||
Text(I18n.UserCreatorChat.messagePlaceholder)
|
||||
@@ -144,17 +144,17 @@ struct UserCreatorChatRoomView: View {
|
||||
.foregroundColor(Color.gray500)
|
||||
}
|
||||
|
||||
TextField("", text: $messageText)
|
||||
TextField("", text: $messageText, axis: .vertical)
|
||||
.appFont(size: 14, weight: .regular)
|
||||
.foregroundColor(.white)
|
||||
.accentColor(Color.soda400)
|
||||
.lineLimit(1...3)
|
||||
.disabled(isInputEnabled == false)
|
||||
.onSubmit { sendText() }
|
||||
}
|
||||
.padding(.horizontal, SodaSpacing.s16)
|
||||
.padding(.vertical, SodaSpacing.s12)
|
||||
.background(Color.gray900)
|
||||
.cornerRadius(999)
|
||||
.cornerRadius(20)
|
||||
|
||||
Button(action: sendText) {
|
||||
Image("ic_message_send")
|
||||
|
||||
Reference in New Issue
Block a user