Skip to content

Commit

Permalink
Merge pull request #2747 from nextcloud/enh/noid/full-width
Browse files Browse the repository at this point in the history
make the sidebare full-width on small screens
  • Loading branch information
marcoambrosini authored Jun 10, 2022
2 parents 34f1e9d + cd98e1d commit f4ff0ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/AppNavigation/AppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,11 @@ export default {
}
}
// Put the toggle behind appsidebar on small screens
@media only screen and (max-width: math.div($breakpoint-mobile, 2)) {
.app-navigation {
z-index: 1400;
}
}
</style>
7 changes: 7 additions & 0 deletions src/components/AppSidebar/AppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,13 @@ $top-buttons-spacing: 6px;
}
}
// Make the sidebar full-width on small screens
@media only screen and (max-width: math.div($breakpoint-mobile, 2)) {
.app-sidebar {
width: 100vw;
}
}
.slide-right-leave-active,
.slide-right-enter-active {
transition-duration: var(--animation-quick);
Expand Down

0 comments on commit f4ff0ba

Please sign in to comment.