From 74db3cd573bea522c01f096788e40662291aa3ba Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 8 Jan 2021 21:05:19 +0000 Subject: [PATCH] * Improved the responsiveness for mobile views on the detail pages --- .../components/movie/movie-details.component.html | 4 ++-- .../shared/top-banner/top-banner.component.html | 6 +++--- .../shared/top-banner/top-banner.component.scss | 3 +++ .../components/shared/top-banner/top-banner.component.ts | 1 + .../components/tv/tv-details.component.html | 4 ++-- .../src/app/media-details/media-details.component.scss | 9 +++------ src/Ombi/ClientApp/src/app/my-nav/my-nav.component.ts | 2 +- 7 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.scss diff --git a/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html b/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html index 2e2f4e1d1..e3fd88067 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/movie/movie-details.component.html @@ -9,12 +9,12 @@
-
+
-
+
diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.html b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.html index 7d88fa63f..bdb9aac37 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.html @@ -7,12 +7,12 @@
-

{{title}} + class="col-xl-11 col-lg-8 offset-xl-1 offset-lg-4 col-md-8 col-sm-7 col-12 offset-md-4 offset-sm-5 mobile-top-text"> +

{{title}} ({{releaseDate | amLocal | amDateFormat: 'YYYY'}})

-
{{tagline}}
+

{{tagline}}

diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.scss b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.scss new file mode 100644 index 000000000..7ad12a274 --- /dev/null +++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.scss @@ -0,0 +1,3 @@ +.large-text { + font: 500 40px/30px Roboto, "Helvetica Neue", sans-serif; +} \ No newline at end of file diff --git a/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts index 583376537..ae61e3f3e 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts +++ b/src/Ombi/ClientApp/src/app/media-details/components/shared/top-banner/top-banner.component.ts @@ -4,6 +4,7 @@ import { DomSanitizer, SafeStyle } from "@angular/platform-browser"; @Component({ selector: "top-banner", templateUrl: "./top-banner.component.html", + styleUrls: ["top-banner.component.scss"] }) export class TopBannerComponent { diff --git a/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html b/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html index 1dfa5c544..a479aba81 100644 --- a/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html +++ b/src/Ombi/ClientApp/src/app/media-details/components/tv/tv-details.component.html @@ -19,13 +19,13 @@
-
+
-
+
= this.breakpointObserver.observe(Breakpoints.Handset) + isHandset$: Observable = this.breakpointObserver.observe([Breakpoints.Small, Breakpoints.Handset, Breakpoints.XSmall]) .pipe( map(result => result.matches) );