mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-08 19:45:08 +00:00
(layouts/dense) Fixed: Navigation appearance doesn't set correctly on small devices
This commit is contained in:
parent
443a103d6f
commit
b96182c848
|
@ -66,6 +66,9 @@ export class DenseLayoutComponent implements OnInit, OnDestroy
|
||||||
|
|
||||||
// Check if the screen is small
|
// Check if the screen is small
|
||||||
this.isScreenSmall = !matchingAliases.includes('md');
|
this.isScreenSmall = !matchingAliases.includes('md');
|
||||||
|
|
||||||
|
// Change the navigation appearance
|
||||||
|
this.navigationAppearance = this.isScreenSmall ? 'default' : 'dense';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user