Skip to content

Commit

Permalink
Fix minor style issue with ovezrflowing text in the detail panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcornut committed Mar 17, 2017
1 parent 11922e1 commit da76950
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/js/DetailsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ module.exports = function DetailsPanel(widget) {
var $title = $('<h2>'+defaultTilte+'</h2>').appendTo($details);

var $detailsTable = $('<table></table>');
$details.append($detailsTable);
$details.append($('<div>').append($detailsTable));

// Add to widget
widget.$root.append($details);
Expand Down
24 changes: 18 additions & 6 deletions src/less/cropOntologyWidget.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
color: #333;
border-bottom: 1px solid #DDD !important;
padding-left: 10px;

/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
}

h3 {
Expand Down Expand Up @@ -99,10 +104,14 @@

// Details (left panel)
.details {
float: left;
float: right;
width: 50%;
max-height: 600px;
overflow-y: auto;

& > div {
max-height: 554px;
overflow-y: auto;
overflow-x: hidden;
}

table {
border: none;
Expand Down Expand Up @@ -139,9 +148,12 @@
text-align: left;
padding-left: 20px;

/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
* {
/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
}

a {
display: inline-block;
Expand Down

0 comments on commit da76950

Please sign in to comment.