From c182527a6c6e01bd5cd32b212026c3176ecbe63d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 5 Sep 2018 11:42:13 +0200 Subject: [PATCH] Fix channels search on mobile --- client/src/app/search/search.component.scss | 64 ++++++++++++++------- 1 file changed, 43 insertions(+), 21 deletions(-) diff --git a/client/src/app/search/search.component.scss b/client/src/app/search/search.component.scss index 67b2094b0..3e074621b 100644 --- a/client/src/app/search/search.component.scss +++ b/client/src/app/search/search.component.scss @@ -132,39 +132,61 @@ } } -@media screen and (max-width: 800px) { - .search-result { - padding: 20px 10px; - } +@media screen and (max-width: $small-view) { + .video-channel-names { + flex-direction: column !important; - .results-header { - font-size: 15px !important; + .video-channel-name { + margin-left: 0 !important; + } } +} - .entry { - flex-direction: column; - height: auto; - text-align: center; +@media screen and (max-width: $mobile-view) { + .search-result { + padding: 20px 10px; - &.video { - .video-info-name, - .video-info-account { - margin: auto; - } + .results-header { + font-size: 15px !important; + } - my-video-thumbnail { - margin-right: 0 !important; + .entry { + flex-direction: column; + height: auto; + justify-content: center; + align-items: center; + text-align: center; + + &.video { + .video-info-name, + .video-info-account { + margin: auto; + } - /deep/ .video-thumbnail { - width: 100%; - height: auto; + my-video-thumbnail { + margin-right: 0 !important; - img { + /deep/ .video-thumbnail { width: 100%; height: auto; + + img { + width: 100%; + height: auto; + } } } } + + &.video-channel { + .video-channel-info .video-channel-names { + align-items: center; + } + + my-subscribe-button { + margin-top: 5px; + } + } } } } -- 2.41.0