Make some view adjustments.

This commit is contained in:
Danila Fedorin 2019-05-19 01:32:39 -07:00
parent 47a684b777
commit 8560f15047
1 changed files with 2 additions and 1 deletions

View File

@ -156,6 +156,7 @@ joinedRoomView m roomId rd =
[ rows 1
, onInput <| ChangeRoomText roomId
, onEnterKey <| SendRoomText roomId
, placeholder "Type your message here..."
, value <| Maybe.withDefault "" <| Dict.get roomId m.roomText
] []
, button [ onClick <| SendFiles roomId ] [ iconView "file" ]
@ -166,8 +167,8 @@ joinedRoomView m roomId rd =
div [ class "room-wrapper" ]
[ h2 [] [ text <| roomDisplayName m rd.joinedRoom ]
, messagesWrapper
, typingWrapper
, messageInput
, typingWrapper
]
onEnterKey : Msg -> Attribute Msg