diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 3d4c3af..ae6c9db 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -20,12 +20,12 @@ export class AppComponent { constructor(public batteryService: BatteryService, router: Router, route: ActivatedRoute, breakpointObserver: BreakpointObserver) { router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => { this.hide = !!route.root.firstChild.snapshot.data.hide; - if(this.hide) this.open = false; + this.open = !this.hide && !this.mobile; }); breakpointObserver.observe([Breakpoints.Handset]).subscribe(result => { this.mobile = result.matches; - this.open = !this.hide && !this.mobile; + this.open = !this.mobile; }) } } diff --git a/src/app/weather/weather.component.html b/src/app/weather/weather.component.html index 7268f04..b2915ab 100644 --- a/src/app/weather/weather.component.html +++ b/src/app/weather/weather.component.html @@ -1,27 +1,29 @@ -
- -
-

{{weatherService.temp}} °C

-

{{weatherService.weather}}

+
+
+ +
+

{{weatherService.temp}} °C

+

{{weatherService.weather}}

+
+
+
+ {{weatherService.humidity}} % +
+
+ {{weatherService.cloudCover}} % +
+
+ {{weatherService.wind[1]}} KM/H +
+
+ +
+
+ {{w.day}} + + {{w.temp}} °C +
+
+
-
-
- {{weatherService.humidity}} % -
-
- {{weatherService.cloudCover}} % -
-
- {{weatherService.wind[1]}} KM/H -
-
- -
-
- {{w.day}} - - {{w.temp}} °C -
-
-