]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-account/my-account-videos/my-account-videos.component.scss
Fix broken views on mobile and small screens (#2671)
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-videos / my-account-videos.component.scss
index 87398e7c8705f5fa9938d8774db85833ae0c5825..40bae7668595319c856b4de69203820521426b77 100644 (file)
@@ -1,6 +1,21 @@
 @import '_variables';
 @import '_mixins';
 
+.videos-header {
+  display: flex;
+  justify-content: space-between;
+  margin: 20px 0 50px;
+
+  h4,
+  .fake-element {
+    flex: 1;
+  }
+
+  input[type=text] {
+    @include peertube-input-text(300px);
+  }
+}
+
 .action-button-delete-selection {
   display: inline-block;
 
   }
 }
 
+::ng-deep {
+  .action-button span {
+    white-space: nowrap;
+  }
+
+  .video-miniature {
+    &.display-as-row {
+      // width: min-content !important;
+      width: 100% !important;
+
+      .video-bottom .video-miniature-information {
+        width: max-content !important;
+        min-width: unset !important;
+      }
+    }
+
+    .video-bottom {
+      max-width: 350px;
+    }
+  }
+}
+
 my-delete-button,
 my-edit-button {
   margin-right: 10px;
 }
+
+@media screen and (max-width: $small-view) {
+  .videos-header {
+    flex-direction: column;
+  }
+
+  ::ng-deep {
+    .video-miniature {
+      align-items: center;
+
+      .video-bottom,
+      .video-bottom .video-miniature-information {
+        /* same width than a.video-thumbnail */
+        max-width: 223px !important;
+      }
+    }
+  }
+
+  my-delete-button,
+  my-edit-button {
+    margin-right: 0px;
+
+    ::ng-deep {
+      span, a {
+        margin-right: 0px;
+      }
+    }
+  }
+
+  my-delete-button,
+  my-edit-button,
+  my-button {
+    margin-top: 15px;
+    width: 100%;
+    text-align: center;
+
+    ::ng-deep {
+      .action-button {
+        /* same width than a.video-thumbnail */
+        width: 223px;
+      }
+    }
+  }
+}