Skip to content

Commit

Permalink
Disable GoldenTemplate sidebar if empty (#2017)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Feb 25, 2021
1 parent e5d0572 commit 7f2bb3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions panel/template/golden/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class GoldenTemplate(BasicTemplate):
'goldenlayout': "https://golden-layout.com/files/latest/css/goldenlayout-base.css",
},
'js': {
'goldenlayout': "https://golden-layout.com/files/latest/js/goldenlayout.js",
'jquery': "http://code.jquery.com/jquery-1.11.1.min.js"
'jquery': "http://code.jquery.com/jquery-1.11.1.min.js",
'goldenlayout': "https://golden-layout.com/files/latest/js/goldenlayout.js"
}
}

Expand Down
4 changes: 3 additions & 1 deletion panel/template/golden/golden.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
{
type: 'row',
content: [
{% if nav %}
{
type: 'component',
componentName: 'view',
Expand All @@ -94,9 +95,10 @@
width: 20,
isClosable: false
},
{% endif %}
{
type: 'stack',
width: 80,
width: {% if nav %}80{% else %}100{% endif %},
content: [
{% for doc in docs %}
{% for root in doc.roots %}
Expand Down

0 comments on commit 7f2bb3b

Please sign in to comment.