From a01f107bc436250706d4bc765f45335ee15b8e80 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Nov 2017 11:46:11 +0100 Subject: Improve client mobile version --- client/src/app/app.component.html | 4 +-- client/src/app/app.component.scss | 1 - client/src/app/app.component.ts | 3 +- client/src/app/core/menu/menu.component.scss | 1 + client/src/app/shared/search/search.component.html | 2 +- .../videos/+video-watch/video-watch.component.html | 4 +-- .../videos/+video-watch/video-watch.component.scss | 41 ++++++++++++++++++---- .../shared/video-miniature.component.scss | 3 +- client/src/sass/application.scss | 18 +++++++++- 9 files changed, 61 insertions(+), 16 deletions(-) (limited to 'client/src') diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index df0ec5a5d..8a826e783 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html @@ -28,10 +28,10 @@ -
+
-
+
diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 7259006e5..a656d5c29 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss @@ -47,7 +47,6 @@ } #peertube-title { - a { color: inherit !important; display: block; diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index bef1599fc..9b699fafd 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts @@ -57,6 +57,7 @@ export class AppComponent implements OnInit { } toggleMenu () { + window.scrollTo(0, 0) this.isMenuDisplayed = !this.isMenuDisplayed } @@ -72,7 +73,7 @@ export class AppComponent implements OnInit { Object.keys(colSizes).forEach(col => colSizes[col] = 12) } - const classes = [ 'main-col' ] + const classes = [] Object.keys(colSizes).forEach(col => classes.push(`col-${col}-${colSizes[col]}`)) return classes diff --git a/client/src/app/core/menu/menu.component.scss b/client/src/app/core/menu/menu.component.scss index 38a6b95b6..45679c310 100644 --- a/client/src/app/core/menu/menu.component.scss +++ b/client/src/app/core/menu/menu.component.scss @@ -6,6 +6,7 @@ menu { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; + z-index: 1000; @media screen and (max-width: 550px) { font-size: 90%; diff --git a/client/src/app/shared/search/search.component.html b/client/src/app/shared/search/search.component.html index 0302447d0..75e9dfa59 100644 --- a/client/src/app/shared/search/search.component.html +++ b/client/src/app/shared/search/search.component.html @@ -1,6 +1,6 @@
- + diff --git a/client/src/app/videos/+video-watch/video-watch.component.html b/client/src/app/videos/+video-watch/video-watch.component.html index 53648a8d8..0bab18d37 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html @@ -52,7 +52,7 @@ @@ -60,7 +60,7 @@
- More +