diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/app.module.ts | 9 | ||||
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.scss | 24 |
2 files changed, 31 insertions, 2 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 1134d061b..34114b60b 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -1,9 +1,11 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { BrowserModule } from '@angular/platform-browser' | 2 | import { BrowserModule } from '@angular/platform-browser' |
3 | import { ServiceWorkerModule } from '@angular/service-worker' | ||
3 | import { AboutModule } from '@app/about' | 4 | import { AboutModule } from '@app/about' |
4 | import { ResetPasswordModule } from '@app/reset-password' | 5 | import { ResetPasswordModule } from '@app/reset-password' |
5 | 6 | ||
6 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' | 7 | import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' |
8 | import { environment } from '../environments/environment' | ||
7 | 9 | ||
8 | import { AccountModule } from './account' | 10 | import { AccountModule } from './account' |
9 | 11 | ||
@@ -24,7 +26,8 @@ export function metaFactory (): MetaLoader { | |||
24 | applicationName: 'PeerTube', | 26 | applicationName: 'PeerTube', |
25 | defaults: { | 27 | defaults: { |
26 | title: 'PeerTube', | 28 | title: 'PeerTube', |
27 | description: 'PeerTube, a decentralized video streaming platform using P2P (BitTorrent) directly in the web browser' | 29 | description: 'PeerTube, a federated (ActivityPub) video streaming platform ' + |
30 | 'using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular. ' | ||
28 | } | 31 | } |
29 | }) | 32 | }) |
30 | } | 33 | } |
@@ -57,7 +60,9 @@ export function metaFactory (): MetaLoader { | |||
57 | MetaModule.forRoot({ | 60 | MetaModule.forRoot({ |
58 | provide: MetaLoader, | 61 | provide: MetaLoader, |
59 | useFactory: (metaFactory) | 62 | useFactory: (metaFactory) |
60 | }) | 63 | }), |
64 | |||
65 | ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production }) | ||
61 | ], | 66 | ], |
62 | providers: [ ] | 67 | providers: [ ] |
63 | }) | 68 | }) |
diff --git a/client/src/app/shared/video/abstract-video-list.scss b/client/src/app/shared/video/abstract-video-list.scss index 52797bc6c..0f0ff20f0 100644 --- a/client/src/app/shared/video/abstract-video-list.scss +++ b/client/src/app/shared/video/abstract-video-list.scss | |||
@@ -5,3 +5,27 @@ | |||
5 | text-align: left; | 5 | text-align: left; |
6 | } | 6 | } |
7 | } | 7 | } |
8 | |||
9 | @media screen and (max-width: 400px) and (min-resolution: 1.5dppx) { | ||
10 | .videos { | ||
11 | text-align: center; | ||
12 | |||
13 | /deep/ .video-miniature { | ||
14 | padding-right: 0; | ||
15 | height: 215px; | ||
16 | width: 100%; | ||
17 | |||
18 | .video-miniature-information { | ||
19 | width: 100%; | ||
20 | } | ||
21 | |||
22 | /deep/ .video-thumbnail { | ||
23 | width: 100%; | ||
24 | |||
25 | img { | ||
26 | width: 100%; | ||
27 | } | ||
28 | } | ||
29 | } | ||
30 | } | ||
31 | } | ||