Review changes

This commit is contained in:
Luke Bennett 2016-08-13 12:20:57 +01:00
parent 673806a29e
commit d8f88aa410
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A
2 changed files with 8 additions and 5 deletions

View file

@ -12,8 +12,8 @@ window.gl = window.gl || {};
}
truncateLongMessage() {
let $messageCellElement = $(this);
let reportMessage = $messageCellElement.text();
const $messageCellElement = $(this);
const reportMessage = $messageCellElement.text();
if (reportMessage.length > MAX_MESSAGE_LENGTH) {
$messageCellElement.data('original-message', reportMessage);
$messageCellElement.data('message-truncated', 'true');
@ -22,8 +22,8 @@ window.gl = window.gl || {};
}
toggleMessageTruncation() {
let $messageCellElement = $(this);
let originalMessage = $messageCellElement.data('original-message');
const $messageCellElement = $(this);
const originalMessage = $messageCellElement.data('original-message');
if (!originalMessage) return;
if ($messageCellElement.data('message-truncated') === 'true') {
$messageCellElement.data('message-truncated', 'false');

View file

@ -108,7 +108,10 @@
.message {
word-wrap: break-word;
}
.btn {
white-space: normal;
padding: $gl-btn-padding;
}
th {
width: 15%;
&.wide {