Review changes
This commit is contained in:
parent
673806a29e
commit
d8f88aa410
2 changed files with 8 additions and 5 deletions
|
@ -12,8 +12,8 @@ window.gl = window.gl || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
truncateLongMessage() {
|
truncateLongMessage() {
|
||||||
let $messageCellElement = $(this);
|
const $messageCellElement = $(this);
|
||||||
let reportMessage = $messageCellElement.text();
|
const reportMessage = $messageCellElement.text();
|
||||||
if (reportMessage.length > MAX_MESSAGE_LENGTH) {
|
if (reportMessage.length > MAX_MESSAGE_LENGTH) {
|
||||||
$messageCellElement.data('original-message', reportMessage);
|
$messageCellElement.data('original-message', reportMessage);
|
||||||
$messageCellElement.data('message-truncated', 'true');
|
$messageCellElement.data('message-truncated', 'true');
|
||||||
|
@ -22,8 +22,8 @@ window.gl = window.gl || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleMessageTruncation() {
|
toggleMessageTruncation() {
|
||||||
let $messageCellElement = $(this);
|
const $messageCellElement = $(this);
|
||||||
let originalMessage = $messageCellElement.data('original-message');
|
const originalMessage = $messageCellElement.data('original-message');
|
||||||
if (!originalMessage) return;
|
if (!originalMessage) return;
|
||||||
if ($messageCellElement.data('message-truncated') === 'true') {
|
if ($messageCellElement.data('message-truncated') === 'true') {
|
||||||
$messageCellElement.data('message-truncated', 'false');
|
$messageCellElement.data('message-truncated', 'false');
|
||||||
|
|
|
@ -108,7 +108,10 @@
|
||||||
.message {
|
.message {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
.btn {
|
||||||
|
white-space: normal;
|
||||||
|
padding: $gl-btn-padding;
|
||||||
|
}
|
||||||
th {
|
th {
|
||||||
width: 15%;
|
width: 15%;
|
||||||
&.wide {
|
&.wide {
|
||||||
|
|
Loading…
Reference in a new issue