dart - App Layout of angular components with AngularDart -


enter image description here

material navigation items overlapping on app title app layout of angular components in device width 320px, , space between navigation items more required. how can fix these 2 things app layout? help!

app_component.html

  <material-drawer temporary #drawer="drawer"                    [attr.end]="true"                    [attr.overlay]="true">       <div *deferredcontent>           here drawer content.       </div>   </material-drawer>   <material-content>       <header class="material-header shadow">           <div class="material-header-row">               <span class="material-header-title">my application</span>               <div class="material-spacer"></div>              nav class="material-navigation">                   <material-button class="material-favorite-button" icon                     (trigger)="drawer.toggle()">                       <material-icon icon="favorite"></material-icon>                   </material-button>             </nav>             <nav class="material-navigation">             <material-button class="material-more-button" icon (trigger)="">                 <material-icon icon="more_vert"></material-icon>             </material-button>             </nav>           </div>        </header>     <div class="app_name">      </div>     <div class="controls">        <h3>options</h3>         <material-toggle [(checked)]="end" label="end">        </material-toggle>         <material-toggle [(checked)]="overlay" label="overlay">        </material-toggle>     </div> </material-content> 

app_component.css

header{  }  .material-header-row {   background-color: #212121;   align-content: center;  }  @media screen , (max-width: 320px) {    header {       width: 100%;   }  } 

even app layout unresponsive @ media of width 320px , 480px

enter image description here

simple answer remove material-navigation buttons. isn't needed material-button provides necessary padding. in fact no need use nav elements @ buttons.

that said did surface bug. navigation link margin double should be. 48px instead of 24px. i'll fix , update documentation make clearer.

thanks finding bug , using angular_components


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -