From a64668c024c84f2b0a01357d05092064f17ffd4e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Jul 2016 16:45:07 +0200 Subject: Client: try to make it work with Android Firefox --- client/src/app/app.component.html | 14 +++++++------- client/src/app/app.component.scss | 12 ++++++++++++ client/src/app/videos/video-list/video-list.component.html | 8 +++++--- client/src/app/videos/video-list/video-list.component.scss | 6 +++--- .../app/videos/video-list/video-miniature.component.html | 2 +- .../app/videos/video-list/video-miniature.component.scss | 5 +++++ .../src/app/videos/video-watch/video-watch.component.html | 6 +++--- .../src/app/videos/video-watch/video-watch.component.scss | 12 +++++++++--- client/src/polyfills.ts | 7 +++---- client/src/sass/application.scss | 4 ++++ 10 files changed, 52 insertions(+), 24 deletions(-) (limited to 'client/src') diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index ab8e0c283..0311179a8 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html @@ -13,10 +13,10 @@
- +
@@ -24,30 +24,30 @@
-
+
diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 1a9a196ff..1d42f2a04 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss @@ -4,6 +4,12 @@ header div { } menu { + @media screen and (max-width: 600px) { + margin-right: 3px !important; + padding: 3px !important; + min-height: 400px !important; + } + min-height: 600px; margin-right: 20px; border-right: 1px solid rgba(0, 0, 0, 0.2); @@ -30,3 +36,9 @@ menu { .panel-block:not(:last-child) { border-bottom: 1px solid rgba(0, 0, 0, 0.1); } + +.router-outlet-container { + @media screen and (max-width: 400px) { + padding: 0 3px 0 3px; + } +} diff --git a/client/src/app/videos/video-list/video-list.component.html b/client/src/app/videos/video-list/video-list.component.html index e119517a8..2a753adba 100644 --- a/client/src/app/videos/video-list/video-list.component.html +++ b/client/src/app/videos/video-list/video-list.component.html @@ -1,10 +1,12 @@ -
-
+
+
{{ pagination.totalItems }} videos
- + + +
diff --git a/client/src/app/videos/video-list/video-list.component.scss b/client/src/app/videos/video-list/video-list.component.scss index 1f491a6c3..fdff42c41 100644 --- a/client/src/app/videos/video-list/video-list.component.scss +++ b/client/src/app/videos/video-list/video-list.component.scss @@ -1,12 +1,12 @@ .videos-info { + @media screen and (max-width: 400px) { + margin-left: 0; + } - padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #f1f1f1; height: 40px; line-height: 40px; - width: 765px; - margin-left: 15px; my-video-sort { padding-right: 0; diff --git a/client/src/app/videos/video-list/video-miniature.component.html b/client/src/app/videos/video-list/video-miniature.component.html index 373ff6bfb..0a0925dea 100644 --- a/client/src/app/videos/video-list/video-miniature.component.html +++ b/client/src/app/videos/video-list/video-miniature.component.html @@ -1,4 +1,4 @@ -
+
-
Download: {{ downloadSpeed | bytes }}/s
-
Upload: {{ uploadSpeed | bytes }}/s
-
Number of peers: {{ numPeers }}
+
Download: {{ downloadSpeed | bytes }}/s
+
Upload: {{ uploadSpeed | bytes }}/s
+
Number of peers: {{ numPeers }}
diff --git a/client/src/app/videos/video-watch/video-watch.component.scss b/client/src/app/videos/video-watch/video-watch.component.scss index 474de74d9..96420582a 100644 --- a/client/src/app/videos/video-watch/video-watch.component.scss +++ b/client/src/app/videos/video-watch/video-watch.component.scss @@ -11,10 +11,16 @@ my-loader { #torrent-info { font-size: 10px; + margin-top: 10px; + text-align: center; div { - display: inline-block; - width: 33%; - text-align: center; + min-width: 60px; + } +} + +.embed-responsive { + @media screen and (max-width: 600px) { + height: 300px; } } diff --git a/client/src/polyfills.ts b/client/src/polyfills.ts index cf7270ac3..740a563bb 100644 --- a/client/src/polyfills.ts +++ b/client/src/polyfills.ts @@ -1,10 +1,9 @@ // Polyfills // (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here) -// import 'ie-shim'; // Internet Explorer -// import 'es6-shim'; -// import 'es6-promise'; -// import 'es7-reflect-metadata'; +require('intl'); +require('intl/locale-data/jsonp/en.js'); +import 'ie-shim'; // Internet Explorer // Prefer CoreJS over the polyfills above import 'core-js/es6'; diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss index 5c56e9507..9c48b4627 100644 --- a/client/src/sass/application.scss +++ b/client/src/sass/application.scss @@ -1,5 +1,9 @@ body { padding: 20px; + + @media screen and (max-width: 400px) { + padding: 3px; + } } footer { -- cgit v1.2.3