Compare commits

..

No commits in common. "19610477035a857cbbb037b5e18fb45dcee9604b" and "980a66fb4794a99ded961c7e27a848eb3be89c43" have entirely different histories.

6 changed files with 26 additions and 35 deletions

View File

@ -1,7 +1,7 @@
body {
margin: 20px;
margin: 1vh;
font-family: 'Quicksand', sans-serif;
font-size: 60px;
font-size: 3vh;
}
a {

View File

@ -1,13 +1,13 @@
#app img
{
max-height: 3em;
max-width: 3em;
max-height: 10vh;
max-width: 10vh;
}
#app ul
{
font-size: 0.75em;
margin: 0.25em 0 0 0;
font-size: 2vh;
margin: 1vh 0 0 0;
padding: 0 0 0 0;
list-style-type: none;
max-height: 80vh;
@ -16,7 +16,7 @@
#app li
{
margin: 0.25em 0.25em 0 0;
margin: 1vh 1vh 0 0;
}
#app #chats {
@ -25,41 +25,37 @@
text-align: left;
}
#app #users {
margin: 0em 1.0em 0em 0.05em;
margin: 0vh 5vh 0vh 0.1vh;
}
#app #chat {
position: relative;
max-height: 86vh;
width: 100vh;
max-height: 80vh;
width: 80vh;
/*border: 2px solid green;*/
overflow: hidden;
}
#app #members {
font-size: 1em;
}
#app #add_chat_off {
text-decoration: underline;
}
#app #messages {
max-height: 50em;
max-height: 50vh;
overflow: scroll;
overflow-y: scroll;
overflow-x: hidden;
font-size: 0.6em;
font-size: 2vh;
}
#app #input_user{
color: green;
width: 8.5em;
height: 1.1em;
font-size: 0.75em;
width: 20vh;
height: 2.5vh;
font-size: 2vh;
border: none;
outline: none;
border-bottom: 0.15em solid green;
border-bottom: 0.25vh solid green;
}
#app #input_chat{
@ -69,18 +65,18 @@
width: 100%;
border: none;
outline: none;
border-bottom: 0.2em solid green;
border-bottom: 0.25vh solid green;
caret-color: green;
color: green;
font-size: 0.65em;
font-size: 2vh;
}
#app #you {
text-align: left;
position: relative;
max-width: 48%;
left: 0.5em;
margin: 0.5em 0 0 0;
left: 2vh;
margin: 1vh 0 0 0;
color: green;
word-wrap: break-word;
@ -90,8 +86,8 @@
text-align: right;
position: relative;
max-width: 48%;
margin: 0.5em 0 0 auto;
right: 0.5em;
margin: 1vh 0 0 auto;
right: 2vh;
color: red;
/* permet le retour à la ligne à la place de dépasser*/

View File

@ -8,13 +8,10 @@ class Channels {
async createChannel(users_id, reload) {
let null_id = false;
users_id.forEach(user_id => {
if (user_id == null)
null_id = true;
return console.log("createChannel error, null id;");
});
if (null_id)
return console.log(users_id, "createChannel error, null id;");
let response = await this.client._post("/api/chat/", {
users_id:users_id

View File

@ -185,9 +185,6 @@ export default class extends AbstractView {
messages.appendChild(text);
});
// Scroll to the bottom of messages
messages.scrollTop = messages.scrollHeight;
}
async hideChat() {
@ -215,6 +212,7 @@ export default class extends AbstractView {
</ul>
</div>
</div>
`;
}
}