mail sidenav scroll issue + toolbar separator global class + renamed MailModule to FuseMailModule

This commit is contained in:
Sercan Yemen 2017-07-26 13:58:55 +03:00
parent 7c770d6bf0
commit 3541d68994
7 changed files with 23 additions and 5 deletions

View File

@ -29,7 +29,7 @@ const PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
const appRoutes: Routes = [ const appRoutes: Routes = [
{ {
path : 'apps/mail', path : 'apps/mail',
loadChildren: './main/apps/mail/mail.module#MailModule' loadChildren: './main/apps/mail/mail.module#FuseMailModule'
}, },
{ {
path : 'apps/chat', path : 'apps/chat',

View File

@ -37,6 +37,7 @@
@import "partials/page-layouts"; @import "partials/page-layouts";
@import "partials/navigation"; @import "partials/navigation";
@import "partials/forms"; @import "partials/forms";
@import "partials/toolbar";
// Plugins // Plugins
@import "partials/plugins/plugins"; @import "partials/plugins/plugins";

View File

@ -0,0 +1,9 @@
.toolbar {
.toolbar-separator {
height: calc(100% - 16px);
width: 1px;
border-right: 1px solid rgba(0, 0, 0, 0.12);
margin: 0 12px;
}
}

View File

@ -59,6 +59,8 @@
<button md-menu-item (click)="selectMails('important', false)">Unimportant</button> <button md-menu-item (click)="selectMails('important', false)">Unimportant</button>
</md-menu> </md-menu>
<div class="toolbar-separator" *ngIf="hasSelectedMails"></div>
<button md-icon-button (click)="setFolderOnSelectedMails(4)" *ngIf="hasSelectedMails"> <button md-icon-button (click)="setFolderOnSelectedMails(4)" *ngIf="hasSelectedMails">
<md-icon>delete</md-icon> <md-icon>delete</md-icon>
</button> </button>

View File

@ -53,17 +53,17 @@ const routes: Routes = [
}, },
{ {
path : '**', path : '**',
redirectTo: 'folder/inbox' redirectTo: 'inbox'
} }
]; ];
@NgModule({ @NgModule({
declarations: [ declarations: [
MailComponent, MailComponent,
MainSidenavComponent,
MailListComponent, MailListComponent,
MailListItemComponent, MailListItemComponent,
MailDetailsComponent MailDetailsComponent,
MainSidenavComponent
], ],
imports : [ imports : [
SharedModule, SharedModule,
@ -73,6 +73,6 @@ const routes: Routes = [
MailService MailService
] ]
}) })
export class MailModule export class FuseMailModule
{ {
} }

View File

@ -52,5 +52,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- / SIDENAV CONTENT --> <!-- / SIDENAV CONTENT -->

View File

@ -1,4 +1,9 @@
:host { :host {
display: flex;
flex: 1 0 auto;
flex-direction: column;
height: 100%;
.header { .header {
.logo { .logo {