Skip to content

Commit

Permalink
fix: auto scroll is not working on devices narrower than 721px(angula…
Browse files Browse the repository at this point in the history
…r#1219)

The flex-basis in the class docs-component-viewer-sidenav-container property was creating problems with the scroll bar in the page https://material.angular.io/cdk/drag-drop/examples for small devices.

Fixes angular#1219 and angular/components#26476
  • Loading branch information
simonzea committed Aug 3, 2023
1 parent 7aae145 commit fa576dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/component-sidenav/component-sidenav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ div.docs-component-viewer-nav-content .mat-nav-list .mat-mdc-list-item .mat-list

@media (max-width: 720px) {
.docs-component-viewer-sidenav-container {
flex: 1 0 auto;
flex: 1 0;
}

.docs-component-sidenav-body-content {
Expand Down

0 comments on commit fa576dc

Please sign in to comment.