Skip to content

Commit

Permalink
Merge pull request #28 from istresearch/issue-27
Browse files Browse the repository at this point in the history
Fixing style script when displayed as _source
  • Loading branch information
andrewkcarter committed Jul 13, 2018
2 parents c5dcdcd + 2bfe934 commit 6521cbb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions public/field_formats/object/templates/object_format.html
Expand Up @@ -25,9 +25,13 @@
// Run this after angular has done it's thing
setTimeout(() => {
// Discover table row
$(".<%= uid %>").closest(".truncate-by-height").css("white-space", "nowrap");
// Only set nowrap if parent is td.discover-table-datafield, do nothing if td.discover-table-sourcefield
$(".<%= uid %>")
.closest("td.discover-table-datafield")
.children(".truncate-by-height")
.css("white-space", "nowrap");

// Discover expanded row table
// Discover table expanded row
$(".<%= uid %>").closest("div.doc-viewer-value").css("white-space", "nowrap");
$(".<%= uid %>").closest("div.doc-viewer-value").siblings("i.fa-warning").remove();
}, 0);
Expand All @@ -42,7 +46,7 @@
.children(".table-cell-filter")
.empty();

// Discover expanded row table
// Discover table expanded row
var buttonsCell = $(".object-table-no-filter.<%= uid %>")
.closest("div.doc-viewer-value")
.closest("td")
Expand Down

0 comments on commit 6521cbb

Please sign in to comment.