Commit bbfb03b6 authored by Albert  Babí Oller's avatar Albert Babí Oller Committed by Albert Babí Oller

chatview: ui small issues

- add margins to invitation text for correct resizing
- resize message container to normal height after sending message

Gitlab: #434

Change-Id: I2f65bd93f81db07039cf4fc5f3fa1f7f865bdeb2
parent 3e3c08a9
......@@ -60,7 +60,7 @@
<div id="invitation">
<div id="invite_header">
<span id="invite_image"></span>
<div id="text"></div>
<div id="text" margin="16px"></div>
</div>
<div id="actions">
<div id="acceptButton" class="nav-button action-button invite-btn-green" onclick="acceptInvitation()">
......@@ -223,7 +223,7 @@
</div>
<textarea id="message" autofocus placeholder="Type a message" onkeyup="grow_text_area()" onkeydown="process_messagebar_keydown()"
rows="1"></textarea>
<div id="sendButton" class="nav-button action-button" onclick="sendMessage(); grow_text_area()">
<div id="sendButton" class="nav-button action-button" onclick="sendMessage();">
<svg class="svgicon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" />
<path d="M0 0h24v24H0z" fill="none" />
......
......@@ -572,8 +572,6 @@ function sendMessage() {
while ((file_src = fileSrcExtract.exec(data_to_send)) !== null) {
window.jsbridge.sendFile(file_src[1])
}
reduce_send_container()
}
var message = messageBarInput.value
......@@ -585,6 +583,8 @@ function sendMessage() {
window.prompt("SEND:" + message)
}
}
grow_text_area()
reduce_send_container()
}
/* exported acceptInvitation */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment