mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
Small adjustment on the layout mode setting
This commit is contained in:
parent
fe8b44b14c
commit
b7cb09b087
|
@ -6,12 +6,6 @@ fuse-main {
|
|||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
&.boxed {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
@include mat-elevation(8);
|
||||
}
|
||||
|
||||
> .mat-sidenav-container {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
|
@ -72,4 +66,10 @@ fuse-main {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
&[fuse-layout-mode="boxed"] {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
@include mat-elevation(8);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export class FuseMainComponent implements OnInit, OnDestroy
|
|||
{
|
||||
onSettingsChanged: Subscription;
|
||||
fuseSettings: any;
|
||||
@HostBinding('class.boxed') boxed;
|
||||
@HostBinding('attr.fuse-layout-mode') layoutMode;
|
||||
|
||||
constructor(
|
||||
private _renderer: Renderer2,
|
||||
|
@ -29,7 +29,7 @@ export class FuseMainComponent implements OnInit, OnDestroy
|
|||
.subscribe(
|
||||
(newSettings) => {
|
||||
this.fuseSettings = newSettings;
|
||||
this.boxed = this.fuseSettings.layout.mode === 'boxed';
|
||||
this.layoutMode = this.fuseSettings.layout.mode;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user