sidenav helper small tweaks

+ chat & toolbar small mobile tweaks
This commit is contained in:
Sercan Yemen 2017-08-30 20:02:54 +03:00
parent 58bdf07da0
commit 48a47a0876
5 changed files with 25 additions and 15 deletions

View File

@ -33,17 +33,17 @@ export class FuseMdSidenavHelperDirective implements OnInit, AfterViewInit, OnDe
if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) ) if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) )
{ {
this.isLockedOpen = true;
this.mdSidenav.mode = 'side';
setTimeout(() => { setTimeout(() => {
this.isLockedOpen = true;
this.mdSidenav.mode = 'side';
this.mdSidenav.open(); this.mdSidenav.open();
}); });
} }
else else
{ {
this.isLockedOpen = false;
this.mdSidenav.mode = 'over';
setTimeout(() => { setTimeout(() => {
this.isLockedOpen = false;
this.mdSidenav.mode = 'over';
this.mdSidenav.close(); this.mdSidenav.close();
}); });
} }
@ -51,15 +51,19 @@ export class FuseMdSidenavHelperDirective implements OnInit, AfterViewInit, OnDe
this.matchMediaSubscription = this.fuseMatchMedia.onMediaChange.subscribe(() => { this.matchMediaSubscription = this.fuseMatchMedia.onMediaChange.subscribe(() => {
if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) ) if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) )
{ {
this.isLockedOpen = true; setTimeout(() => {
this.mdSidenav.mode = 'side'; this.isLockedOpen = true;
this.mdSidenav.open(); this.mdSidenav.mode = 'side';
this.mdSidenav.open();
});
} }
else else
{ {
this.isLockedOpen = false; setTimeout(() => {
this.mdSidenav.mode = 'over'; this.isLockedOpen = false;
this.mdSidenav.close(); this.mdSidenav.mode = 'over';
this.mdSidenav.close();
});
} }
}); });

View File

@ -1,4 +1,4 @@
<div id="calendar" class="page-layout carded fullwidth"> <div id="chat" class="page-layout carded fullwidth">
<!-- TOP BACKGROUND --> <!-- TOP BACKGROUND -->
<div class="top-bg md-accent-bg"></div> <div class="top-bg md-accent-bg"></div>

View File

@ -1,4 +1,6 @@
#calendar { @import "src/app/core/scss/fuse";
#chat {
display: flex; display: flex;
flex: 1; flex: 1;
@ -7,6 +9,10 @@
max-width: 1400px; max-width: 1400px;
margin: 0 auto; margin: 0 auto;
@include media-breakpoint(xs) {
padding: 8px !important;
}
.content-card { .content-card {
display: flex; display: flex;
flex: 1; flex: 1;

View File

@ -688,7 +688,7 @@
<!-- / CENTER --> <!-- / CENTER -->
<!-- SIDENAV --> <!-- SIDENAV -->
<md-sidenav class="sidenav mat-sidenav-opened" align="end" opened="true" mode="side" fuseMdSidenavHelper="dashboards-right-sidenav" md-is-locked-open="gt-md"> <md-sidenav class="sidenav mat-sidenav-opened" align="end" mode="side" fuseMdSidenavHelper="dashboards-right-sidenav" md-is-locked-open="gt-md">
<div class="sidenav-content" perfect-scrollbar> <div class="sidenav-content" perfect-scrollbar>
<!-- WIDGET GROUP --> <!-- WIDGET GROUP -->

View File

@ -18,7 +18,7 @@
<a href="http://themeforest.net/item/fuse-angularjs-material-design-admin-template/12931855?ref=srcn" <a href="http://themeforest.net/item/fuse-angularjs-material-design-admin-template/12931855?ref=srcn"
target="_blank" md-raised-button class="ml-8 ml-sm-24 md-pink-bg" fxFlex="0 0 auto" fxLayout="row" target="_blank" md-raised-button class="ml-8 ml-sm-24 md-pink-bg" fxFlex="0 0 auto" fxLayout="row"
fxLayoutAlign="start center"> fxLayoutAlign="start center" fxHide fxShow.gt-xs>
<md-icon class="s-16 mr-sm-4">shopping_cart</md-icon> <md-icon class="s-16 mr-sm-4">shopping_cart</md-icon>
<span fxHide fxShow.gt-xs>Purchase Fuse template (Angular4+)</span> <span fxHide fxShow.gt-xs>Purchase Fuse template (Angular4+)</span>
</a> </a>
@ -62,7 +62,7 @@
<div class="toolbar-separator"></div> <div class="toolbar-separator"></div>
<button md-button <button md-button fxHide fxShow.gt-xs
class="language-button" class="language-button"
[mdMenuTriggerFor]="languageMenu"> [mdMenuTriggerFor]="languageMenu">
<div fxLayout="row" fxLayoutAlign="center center"> <div fxLayout="row" fxLayoutAlign="center center">