From 3143ae17a014576ec21b535ba9e8266ca727a152 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Apr 2019 15:23:41 +0200 Subject: [PATCH] Improve playlist element style --- ...unt-video-playlist-elements.component.html | 2 +- ...-playlist-element-miniature.component.scss | 11 +++--- ...eo-playlist-element-miniature.component.ts | 2 +- .../video-playlist-miniature.component.html | 12 +++--- .../video-playlist-miniature.component.scss | 28 +++++++------- .../+video-watch/video-watch.component.scss | 37 ++++++++++--------- 6 files changed, 49 insertions(+), 43 deletions(-) diff --git a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html index 95d4519fa..284694b7f 100644 --- a/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html +++ b/client/src/app/+my-account/my-account-video-playlists/my-account-video-playlist-elements.component.html @@ -7,7 +7,7 @@ > -
+
No videos in this playlist.
-
{{ playlist.privacy.label }}
+ + {{ playlist.videoChannelBy }} + -
- - {{ playlist.videoChannelBy }} - +
+ {{ playlist.privacy.label }} -
Updated {{ playlist.updatedAt | myFromNow }}
+ Updated {{ playlist.updatedAt | myFromNow }}
{{ playlist.description }}
diff --git a/client/src/app/shared/video-playlist/video-playlist-miniature.component.scss b/client/src/app/shared/video-playlist/video-playlist-miniature.component.scss index 94edd1177..8947e72d1 100644 --- a/client/src/app/shared/video-playlist/video-playlist-miniature.component.scss +++ b/client/src/app/shared/video-playlist/video-playlist-miniature.component.scss @@ -43,18 +43,25 @@ .miniature-name { @include miniature-name; + + @include ellipsis-multiline(1.3em, 2); + + margin: 0; } - .video-info-by-date { - display: flex; - font-size: 13px; - margin: 5px 0; + .by { + @include disable-default-a-behaviour; - .by { - @include disable-default-a-behaviour; + display: block; + color: $grey-foreground-color; + } - display: block; - color: var(--mainForegroundColor); + .privacy-date { + margin-top: 5px; + + .video-info-privacy { + font-size: 14px; + font-weight: $font-semibold; &::after { content: '-'; @@ -63,11 +70,6 @@ } } - .video-info-privacy { - font-size: 13px; - font-weight: $font-semibold; - } - .video-info-description { margin-top: 10px; color: $grey-foreground-color; 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 c1eaf9b2b..d61a0bc3e 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.scss +++ b/client/src/app/videos/+video-watch/video-watch.component.scss @@ -16,6 +16,8 @@ $player-factor: 1.7; // 16/9 @mixin playlist-below-player { width: 100%; + height: auto; + max-height: 300px; border-bottom: 1px solid $separator-border-color; } @@ -51,6 +53,12 @@ $player-factor: 1.7; // 16/9 justify-content: center; margin: 0 -15px; + #videojs-wrapper { + display: flex; + justify-content: center; + flex-grow: 1; + } + .remote-server-down { color: #fff; display: flex; @@ -73,10 +81,12 @@ $player-factor: 1.7; // 16/9 } .playlist { - width: 400px; + min-width: 200px; + max-width: 470px; height: 66vh; background-color: var(--mainBackgroundColor); overflow-y: auto; + border-bottom: 1px solid $separator-border-color; .playlist-info { padding: 5px 30px; @@ -492,6 +502,15 @@ my-video-comments { } @media screen and (max-width: 1100px) { + #video-wrapper { + flex-direction: column; + justify-content: center; + + .playlist { + @include playlist-below-player; + } + } + .video-bottom { flex-direction: column; @@ -506,22 +525,6 @@ my-video-comments { } } -@media screen and (max-width: 900px) { - #video-wrapper { - flex-direction: column; - justify-content: center; - - #videojs-wrapper { - display: flex; - justify-content: center; - } - - .playlist { - @include playlist-below-player; - } - } -} - @media screen and (max-width: 600px) { .video-bottom { margin: 20px 0 0 0 !important; -- 2.41.0