Skip to content

Commit

Permalink
Merge pull request #5149 from owncloud/25052021_hide-left-sidebar-if-…
Browse files Browse the repository at this point in the history
…no-navitems

Hide left sidebar if no navitems present
  • Loading branch information
Pascal Wengerter authored May 25, 2021
2 parents 47090c4 + e4287f8 commit 9221a99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/enhancement-hide-navbar-if-no-navitems
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Hide left sidebar if no navitems are present

For extensions / pages without nav items and public link pages,
we now hide the left sidebar to not confuse screen readers and
give more screen space for the content.

https://github.com/owncloud/web/pull/5149
3 changes: 3 additions & 0 deletions packages/web-runtime/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ export default {
},
isSidebarVisible() {
if (this.sidebarNavItems.length === 0) {
return false
}
return this.windowWidth >= 1200 || this.appNavigationVisible
},
Expand Down

0 comments on commit 9221a99

Please sign in to comment.