material icon indicating copy to clipboard operation
material copied to clipboard

mdSidenav: 100% on small screens

Open vitoller opened this issue 11 years ago • 4 comments

when using mdSidenav as Master/Detail controller on a small screen, it might not use the full screenwidth for the display. It would be great to have a way to make mdSidenav slide open 100% on smaller screens.

vitoller avatar Mar 01 '15 09:03 vitoller

How would you get out of it without swiping?

marcysutton avatar Mar 02 '15 21:03 marcysutton

The Material design whiteframes template has a layout that looks similar to this idea in the fourth set of layouts. There is a close X in the top corner. It doesn't really match the description of the navigation drawer in the spec though. I would still love to have this as an option.

2015-03-03_0802

rrharvey avatar Mar 03 '15 15:03 rrharvey

@vitoller - Use CSS to force the SideNav full-width. On the Angular Material site you use the following css to force full-width:

.site-sidenav, .site-sidenav.md-locked-open-add-active, .site-sidenav.md-locked-open {
width: 100%;
min-width: 254px;
max-width: 100%;
}

Closed. @See #1765.

ThomasBurleson avatar Mar 03 '15 15:03 ThomasBurleson

You can add md-is-locked-open="$mdMedia('sm')" and flex-sm="100" to sidenav. Besides you should add close button.

karray avatar Aug 29 '15 18:08 karray