Browse Source

Fixed issue with overlapping text and timestamp.

pull/41/head v0.18.1
Simon Eisenmann 11 years ago committed by Simon Eisenmann
parent
commit
d51e291657
  1. 5
      src/styles/components/_chat.scss
  2. 4
      static/js/controllers/chatroomcontroller.js

5
src/styles/components/_chat.scss

@ -297,6 +297,11 @@ @@ -297,6 +297,11 @@
text-align: right;
top: 8px;
}
.timestamp-space {
width:40px;
height:10px;
float:right;
}
strong {
display: block;
padding-bottom: 2px;

4
static/js/controllers/chatroomcontroller.js

@ -192,7 +192,9 @@ define(['underscore', 'moment', 'text!partials/fileinfo.html'], function(_, mome @@ -192,7 +192,9 @@ define(['underscore', 'moment', 'text!partials/fileinfo.html'], function(_, mome
}
lastMessageContainer = $("<ul>").appendTo(container);
if ($.trim(s)) {
element = $("<li>").html(s).appendTo(lastMessageContainer);
element = $("<li>").html(s);
element.prepend('<div class="timestamp-space">');
element.appendTo(lastMessageContainer);
}
}
if (nodes) {

Loading…
Cancel
Save