Skip to content

Commit

Permalink
hide sidebar if no content
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnhoffer committed Nov 1, 2021
1 parent 792d085 commit 0234036
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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"
},
"name": "minerva-browser",
"version": "3.2.2",
"version": "3.2.3",
"description": "A storytelling interface atop openseadragon",
"main": "index.js",
"repository": {
Expand Down
5 changes: 5 additions & 0 deletions render.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,11 @@ Render.prototype = {
const minimal_sidebar = !edit && HS.totalCount == 1 && !decode(HS.d);
classOrNot(prefix+'.minerva-sidebar-menu', minimal_sidebar, 'minimal');
displayOrNot(prefix+'.minerva-welcome-nav', !minimal_sidebar);
// Disable sidebar if no content
if (minimal_sidebar && noHome) {
classOrNot(prefix+'.minerva-sidebar-menu', true, 'toggled');
displayOrNot(prefix+'.minerva-toggle-sidebar', false);
}

// H&E should not display number of cycif markers
const is_h_e = HS.group.Name == 'H&E';
Expand Down

0 comments on commit 0234036

Please sign in to comment.