Skip to content

Commit

Permalink
support for arbitrary missing discriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnhoffer committed Aug 14, 2023
1 parent abf8a2a commit e83a379
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/bundle.dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build": "webpack --mode production && webpack --mode development -c webpack.config.dev.js"
},
"name": "minerva-browser",
"version": "3.19.1",
"version": "3.19.2",
"description": "A storytelling interface atop openseadragon",
"main": "index.js",
"repository": {
Expand Down
8 changes: 6 additions & 2 deletions render.js
Original file line number Diff line number Diff line change
Expand Up @@ -1138,9 +1138,13 @@ Render.prototype = {
].concat((group_index === HS.activeChannel) ? [
'border-bottom: '+ '2px solid #' + color
] : []);
const empty = '---';
li.style.cssText = styles.join('; ');
li.addEventListener("click", onClick);
li.innerText = description;
li.innerText = description || empty;
if (!description) {
li.style.color = 'transparent';
}
ul.appendChild(li);
})('minerva-channel-legend-info');

Expand Down Expand Up @@ -1170,7 +1174,7 @@ Render.prototype = {
var li = document.createElement('li');
li.addEventListener("click", onClick);
li.innerText = subgroup.Description || empty;
if (li.innerText === empty) {
if (!subgroup.Description) {
li.style.color = 'transparent';
}
ul.appendChild(li);
Expand Down

0 comments on commit e83a379

Please sign in to comment.