]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.scss
Fix broken views on mobile and small screens (#2671)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-video-playlists / my-account-video-playlists.component.scss
index f648c33e4786ea121569db1a8155b6a6a0543c5b..4381d74b060665d9d6c84db99ba105af23db26d2 100644 (file)
@@ -5,7 +5,7 @@
   @include create-button;
 }
 
-/deep/ .action-button {
+::ng-deep .action-button {
   &.action-button-delete {
     margin-right: 10px;
   }
@@ -17,7 +17,7 @@
   .miniature-wrapper {
     flex-grow: 1;
 
-    /deep/ .miniature {
+    ::ng-deep .miniature {
       display: flex;
 
       .miniature-info {
 
   .video-playlist-buttons {
     min-width: 190px;
+    height: max-content;
   }
 }
 
 .video-playlists-header {
-  text-align: right;
+  display: flex;
+  justify-content: space-between;
   margin: 20px 0 50px;
+
+  input[type=text] {
+    @include peertube-input-text(300px);
+  }
 }
 
-@media screen and (max-width: 800px) {
+@media screen and (max-width: $small-view) {
   .video-playlists-header {
     text-align: center;
   }
       margin-top: 10px;
     }
   }
+
+  my-video-playlist-miniature ::ng-deep .miniature {
+    flex-direction: column;
+
+    .miniature-info {
+      margin-left: 0 !important;
+    }
+
+    .miniature-name {
+      max-width: $video-thumbnail-width;
+    }
+  }
+}
+
+@media only screen and (min-width: $mobile-view) and (max-width: $small-view) {
+  .video-playlists-header {
+    input[type=text] {
+      width: 42% !important;
+    }
+  }
+}
+
+@media screen and (max-width: $mobile-view) {
+  .video-playlists-header {
+    flex-direction: column;
+
+    input[type=text] {
+      width: 100% !important;
+      margin-bottom: 12px;
+    }
+  }
 }