1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-22 09:12:19 -05:00

Fix multiple mentions, chat box resizing

This commit is contained in:
Lance Stout 2013-12-19 09:38:37 -08:00
parent a44440411c
commit 2ce7e90cbd
4 changed files with 11 additions and 2 deletions

View File

@ -102,7 +102,8 @@ var Message = module.exports = HumanModel.define({
body = htmlify.toHTML(body);
if (this.mentions) {
var existing = htmlify.toHTML(this.mentions);
body = body.replace(existing, '<span class="mention">' + existing + '</span>');
var parts = body.split(existing);
body = parts.join('<span class="mention">' + existing + '</span>');
}
return body;
}

View File

@ -1157,6 +1157,10 @@ button.secondary:hover:not(:disabled) {
height: 30px;
padding: 6px 10px;
}
.chatBox textarea:focus {
transition: none;
-webkit-transition: none;
}
.chatBox textarea.editing {
background-color: #fffcea;
border: 1px solid #efe391;

View File

@ -262,6 +262,10 @@
height: 30px
padding: 6px 10px
&:focus
transition: none
-webkit-transition: none
&.editing
background-color: #fffcea
border: 1px solid #efe391

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# 0.0.1 1387404089194
# 0.0.1 1387474672583
CACHE:
/app.js