From 8ff3f88347cb733ca8a3978ba6eb9763fb3ea294 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 5 Sep 2018 11:20:44 +0200 Subject: Fix watch page responsive --- .../videos/+video-watch/video-watch.component.html | 10 ++--- .../videos/+video-watch/video-watch.component.scss | 48 +++++++--------------- .../videos/+video-watch/video-watch.component.ts | 4 -- 3 files changed, 19 insertions(+), 43 deletions(-) (limited to 'client/src/app/videos') 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 582cf6e37..cafd92dbd 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.html +++ b/client/src/app/videos/+video-watch/video-watch.component.html @@ -110,8 +110,9 @@
+ >
@@ -200,13 +201,10 @@ -
- - + - +
Friendly Reminder: 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 edd5ae6ba..58c45cde9 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.scss +++ b/client/src/app/videos/+video-watch/video-watch.component.scss @@ -99,9 +99,10 @@ } .video-info-date-views { - font-size: 16px; - margin-bottom: 10px; flex-grow: 1; + margin-bottom: 10px; + margin-right: 10px; + font-size: 16px; } .video-info-channel { @@ -164,8 +165,7 @@ } .video-actions-rates { - margin-top: 20px; - margin-bottom: 10px; + margin: 20px 0 10px 0; align-items: start; .video-actions { @@ -361,12 +361,13 @@ /deep/ .other-videos { padding-left: 1em; + width: 260px; .title-page { margin-top: 0 !important; } - /deep/ .video-miniature { + .video-miniature { display: flex; height: 100%; margin-bottom: 20px; @@ -388,9 +389,16 @@ width: calc(100% - #{$menu-width}); } +@media screen and (max-width: $small-view) { + .privacy-concerns { + margin-left: $menu-width; + } +} + :host-context(.expanded) { .privacy-concerns { width: 100%; + margin-left: 0; } } @@ -438,34 +446,12 @@ @media screen and (max-width: 1600px) { - .video-bottom { - .video-info { - .video-info-first-row { - flex-direction: column; - margin-bottom: 20px; - } - - .video-info-date-views { - flex-direction: column; - margin-bottom: 30px; - - .video-info-likes-dislikes-bar { - margin-top: 0; - } - } - - .video-attributes .video-attribute { - margin-bottom: 5px; - } - } + .video-bottom .video-info .video-attributes .video-attribute { + margin-bottom: 5px; } } @media screen and (max-width: 1300px) { - .video-bottom { - flex-direction: column; - } - /deep/ .other-videos { padding-left: 0 !important; } @@ -480,10 +466,6 @@ } } -@media (max-width: 1150px) { - .w-100-until-1150px { width: 100% !important } -} - @media screen and (max-width: 600px) { .video-bottom { margin: 20px 0 0 0; diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts index 95198f0aa..768a08d42 100644 --- a/client/src/app/videos/+video-watch/video-watch.component.ts +++ b/client/src/app/videos/+video-watch/video-watch.component.ts @@ -317,10 +317,6 @@ export class VideoWatchComponent implements OnInit, OnDestroy { return this.video && this.video.state.id === VideoState.TO_IMPORT } - isMenuExpanded () { - return document.getElementById('right-container').classList.contains('expanded') - } - hasVideoScheduledPublication () { return this.video && this.video.scheduledUpdate !== undefined } -- cgit v1.2.3