mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-31 01:25:39 -05:00
Tweaks for phones and tablets
This commit is contained in:
@@ -9,7 +9,14 @@ import { map, shareReplay } from 'rxjs/operators';
|
||||
styleUrls: ['./nav.component.scss']
|
||||
})
|
||||
export class NavComponent {
|
||||
isHandset$: Observable<boolean> = this.breakpointObserver.observe(Breakpoints.Handset)
|
||||
isHandset$: Observable<boolean> = this.breakpointObserver.observe([
|
||||
Breakpoints.HandsetLandscape,
|
||||
Breakpoints.HandsetPortrait,
|
||||
Breakpoints.Handset,
|
||||
Breakpoints.TabletLandscape,
|
||||
Breakpoints.TabletPortrait,
|
||||
Breakpoints.Tablet
|
||||
])
|
||||
.pipe(
|
||||
map(result => result.matches),
|
||||
shareReplay()
|
||||
|
||||
Reference in New Issue
Block a user