From 8560f15047c4810c58a27912aef62ca3106d6bda Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 19 May 2019 01:32:39 -0700 Subject: [PATCH] Make some view adjustments. --- src/Scylla/Views.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Scylla/Views.elm b/src/Scylla/Views.elm index e2eb810..72f3fcb 100644 --- a/src/Scylla/Views.elm +++ b/src/Scylla/Views.elm @@ -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