(layouts/dense) Fixed: Navigation appearance doesn't set correctly on small devices

This commit is contained in:
Sercan Yemen 2022-01-14 11:36:38 +03:00
parent 443a103d6f
commit b96182c848

View File

@ -66,6 +66,9 @@ export class DenseLayoutComponent implements OnInit, OnDestroy
// Check if the screen is small
this.isScreenSmall = !matchingAliases.includes('md');
// Change the navigation appearance
this.navigationAppearance = this.isScreenSmall ? 'default' : 'dense';
});
}