Browse Source

Merge pull request #7470 from nextcloud/enh/noid/sidebar-mobile

do not open the right sidebar on mobile automatically
pull/7372/head
Marco 4 years ago
committed by GitHub
parent
commit
9a00b48798
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/App.vue

2
src/App.vue

@ -209,7 +209,7 @@ export default {
token() {
// Collapse the sidebar if it's a 1to1 conversation
if (this.isOneToOne || BrowserStorage.getItem('sidebarOpen') === 'false') {
if (this.isOneToOne || BrowserStorage.getItem('sidebarOpen') === 'false' || window.screen.width < (getComputedStyle(document.documentElement).getPropertyValue('--breakpoint-mobile') / 2)) {
this.$store.dispatch('hideSidebar')
} else if (BrowserStorage.getItem('sidebarOpen') === 'true') {
this.$store.dispatch('showSidebar')

Loading…
Cancel
Save