adopted-ember-addons / adopted-ember-addons/ember-paper
Is there a way to hide the sidenav if it has no content?
- 主要语言
- JavaScript
- 星标
- 879
- 派生
- 327
- PR 合并指标
- 30 天内没有已合并 PR
描述
here is my current sidenav in application.hbs:
```hbs
{{#paper-sidenav-container}}
{{#paper-sidenav open=leftBarOpen class='md-whiteframe-z2' onToggle=(action (mut leftBarOpen))}}
{{from-elsewhere name='left-side-bar'}}
{{/paper-sidenav}}
...
```
what I'd like to be able to do, is if the content of from-elsewhere is empty, don't have the sidebar.
I'm swapping out the sidebar via `to-elsewhere` depending on the route.
For large pages without a sidebar, the blank space on the left looks kinda weird, ya know?
for mobile sizes, since it's at least 'hidden' -- it doesn't look so bad. :-)
But also, I wonder if there'd be a way to optionally make it mobile only?
Maybe the solution is to wrap the from-elsewhere in:
```hbs
{{from-elsewhere... }}
```
where, I just also set `sidenavWrapperClass` depending on the route, and have it always revert to `''` or something.
idk.
how would you go about this?
贡献指南
评估
这个 Issue 还没有评估数据。