Skip to content

Commit d51e291

Browse files
committed
Fixed issue with overlapping text and timestamp.
1 parent 6acba13 commit d51e291

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/styles/components/_chat.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@
297297
text-align: right;
298298
top: 8px;
299299
}
300+
.timestamp-space {
301+
width:40px;
302+
height:10px;
303+
float:right;
304+
}
300305
strong {
301306
display: block;
302307
padding-bottom: 2px;

static/js/controllers/chatroomcontroller.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ define(['underscore', 'moment', 'text!partials/fileinfo.html'], function(_, mome
192192
}
193193
lastMessageContainer = $("<ul>").appendTo(container);
194194
if ($.trim(s)) {
195-
element = $("<li>").html(s).appendTo(lastMessageContainer);
195+
element = $("<li>").html(s);
196+
element.prepend('<div class="timestamp-space">');
197+
element.appendTo(lastMessageContainer);
196198
}
197199
}
198200
if (nodes) {

0 commit comments

Comments
 (0)