material icon indicating copy to clipboard operation
material copied to clipboard

Responsive design can be improved for small devices

Open ghost opened this issue 11 years ago • 13 comments

Toolbar title, breadcrumb and directive name are poorly displayed: capture d ecran 2014-12-17 a 13 33 49

A proposed solution would be to switch to menu when width is smaller than 771 pixels instead of 600.

ghost avatar Dec 17 '14 12:12 ghost

When the content width [box area with Basic Usage] is great than 900px, then the SideNav component is locked into the open position. Less than that and it auto-hides.

ThomasBurleson avatar Dec 17 '14 12:12 ThomasBurleson

@ThomasBurleson Are you sure? I think currently on the documentation site, the sidenav is locked open to gt-sm, which is greater than 600px not 900px. Maybe it should be gt-md?

  <md-sidenav layout="column"
              style="overflow: hidden; display: flex;"
              class="md-sidenav-left md-whiteframe-z2"
              md-component-id="left"
              md-is-locked-open="$media('gt-sm')">

mzbyszynski avatar Dec 17 '14 17:12 mzbyszynski

Doe the commit c62b970536d on master not address this correctly?

<md-sidenav class="md-sidenav-left md-whiteframe-z2" md-component-id="left" md-is-locked-open="$media('gt-md')">

Or perhaps I am misunderstanding something ?

Note this will be available later this week in a tagged 0.7.0-rc1 release.

ThomasBurleson avatar Dec 17 '14 18:12 ThomasBurleson

Hi @ThomasBurleson, The screenshot that @MCBL posted wasn't of the md-sidenav demo (which I agree is working correctly), it was the progress-circular demo with the overall sidenav that is used to navigate the documentation site, so I took that to mean his issue was with that sidenav, but I'm not totally sure :smile: . I do think it might make sense to hide the sidenav on the documentation site for medium sized devices though...

mzbyszynski avatar Dec 17 '14 18:12 mzbyszynski

@MCBL - So this issue is about the responsive layout of the title bar text ? Missed that... sorry.

ThomasBurleson avatar Dec 18 '14 04:12 ThomasBurleson

Exactly yes, it's the header bar text that is poorly displayed. It clearly needs more space. That's why I propose to switch to menu when width is smaller than 771 pixels instead of 600.

ghost avatar Dec 19 '14 08:12 ghost

@ThomasBurleson: The commit you mentioned is for the sidenav demo. @MCBL is basically proposing the same change for the Docs App's sidenav.

gkalpak avatar Dec 19 '14 09:12 gkalpak

Closed with bfc947f66b2a2568dc76ca3278eb9b5f83424a2f

marcysutton avatar Jan 07 '15 22:01 marcysutton

It is still poorly displayed. Juste resize your browser on page with a lot of text. It's ugly! capture d ecran 2015-01-12 a 11 46 24

ghost avatar Jan 12 '15 10:01 ghost

Are you looking at material.angularjs.org or a local build from master? We are still working to get the site updated, which won't reflect these changes.

marcysutton avatar Jan 12 '15 17:01 marcysutton

At material.angularjs.org. Ok all right, thanks.

ghost avatar Jan 13 '15 09:01 ghost

@ThomasBurleson as you said "When the content width [box area with Basic Usage] is great than 900px, then the SideNav component is locked into the open position. Less than that and it auto-hides."

How can i fix to open for all the resolutions?

ashishpatel02 avatar Sep 14 '16 07:09 ashishpatel02

@ashishpatel02 - try md-is-locked-open="true"

ThomasBurleson avatar Sep 14 '16 15:09 ThomasBurleson