diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-12 17:47:13 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-12 17:56:11 +0100 |
commit | d6bd50ba1d095d35ec3837afedd8319a05cded90 (patch) | |
tree | b9fbafc98259b7d72949f1b6485e5a3885268bb6 /client/src/app/shared/video | |
parent | d169c4ad46291b8895498da268800bec650b43f2 (diff) | |
download | PeerTube-d6bd50ba1d095d35ec3837afedd8319a05cded90.tar.gz PeerTube-d6bd50ba1d095d35ec3837afedd8319a05cded90.tar.zst PeerTube-d6bd50ba1d095d35ec3837afedd8319a05cded90.zip |
Add background placeholder for thumbnails
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r-- | client/src/app/shared/video/abstract-video-list.scss | 3 | ||||
-rw-r--r-- | client/src/app/shared/video/video-thumbnail.component.scss | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/shared/video/abstract-video-list.scss b/client/src/app/shared/video/abstract-video-list.scss index 3fdfcefa0..63538a089 100644 --- a/client/src/app/shared/video/abstract-video-list.scss +++ b/client/src/app/shared/video/abstract-video-list.scss | |||
@@ -26,10 +26,11 @@ | |||
26 | 26 | ||
27 | /deep/ .video-thumbnail { | 27 | /deep/ .video-thumbnail { |
28 | width: 100%; | 28 | width: 100%; |
29 | height: auto; | ||
29 | 30 | ||
30 | img { | 31 | img { |
31 | height: auto; | ||
32 | width: 100%; | 32 | width: 100%; |
33 | height: auto; | ||
33 | } | 34 | } |
34 | } | 35 | } |
35 | } | 36 | } |
diff --git a/client/src/app/shared/video/video-thumbnail.component.scss b/client/src/app/shared/video/video-thumbnail.component.scss index 4840a9e4f..c3cb1ec75 100644 --- a/client/src/app/shared/video/video-thumbnail.component.scss +++ b/client/src/app/shared/video/video-thumbnail.component.scss | |||
@@ -6,6 +6,9 @@ | |||
6 | position: relative; | 6 | position: relative; |
7 | border-radius: 4px; | 7 | border-radius: 4px; |
8 | overflow: hidden; | 8 | overflow: hidden; |
9 | width: $video-thumbnail-width; | ||
10 | height: $video-thumbnail-height; | ||
11 | background-color: #ececec; | ||
9 | 12 | ||
10 | &:hover { | 13 | &:hover { |
11 | text-decoration: none !important; | 14 | text-decoration: none !important; |