]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix regressions sub-menu titles on mobile-view
authorkimsible <kimsible@users.noreply.github.com>
Mon, 3 Aug 2020 11:55:48 +0000 (13:55 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 3 Aug 2020 14:52:40 +0000 (16:52 +0200)
client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.html
client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.scss
client/src/app/+my-account/my-account-subscriptions/my-account-subscriptions.component.html
client/src/app/+my-account/my-account-subscriptions/my-account-subscriptions.component.scss
client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.html
client/src/app/+my-account/my-account-video-playlists/my-account-video-playlists.component.scss
client/src/app/+my-account/my-account-videos/my-account-videos.component.html
client/src/app/+my-account/my-account-videos/my-account-videos.component.scss

index f4ff323662dfd2b0d860295014da74d7585d88e8..205d23cd55a8fa13227d67ea65e2553803a744cf 100644 (file)
@@ -1,12 +1,15 @@
-<h1 class="d-flex justify-content-between">
+<h1>
   <span>
     <my-global-icon iconName="channel" aria-hidden="true"></my-global-icon>
     <ng-container i18n>My channels</ng-container>
     <span class="badge badge-secondary">{{ totalItems }}</span>
   </span>
+</h1>
 
+<div class="video-channels-header d-flex justify-content-between">
   <div class="has-feedback has-clear">
-    <input type="text" placeholder="Search your channels" i18n-placeholder [(ngModel)]="channelsSearch" (ngModelChange)="onChannelsSearchChanged()" />
+    <input type="text" placeholder="Search your channels" i18n-placeholder [(ngModel)]="channelsSearch"
+      (ngModelChange)="onChannelsSearchChanged()" />
     <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
     <span class="sr-only" i18n>Clear filters</span>
   </div>
@@ -15,7 +18,7 @@
     <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
     <ng-container i18n>Create video channel</ng-container>
   </a>
-</h1>
+</div>
 
 <div class="video-channels">
   <div *ngFor="let videoChannel of videoChannels; let i = index" class="video-channel">
index 4ecb4f40845503b72355a6ef7e17f4042574999e..cbd999fbd5cb2178c5ed7a37b7607b70da58d3ad 100644 (file)
@@ -64,6 +64,10 @@ input[type=text] {
   top: 1px;
 }
 
+.video-channels-header {
+  margin-bottom: 30px;
+}
+
 @media screen and (max-width: $small-view) {
   .video-channels-header {
     text-align: center;
@@ -97,6 +101,17 @@ input[type=text] {
   }
 }
 
+@media screen and (max-width: $mobile-view) {
+  .video-channels-header {
+    flex-direction: column;
+
+    input[type=text] {
+      width: 100% !important;
+      margin-bottom: 12px;
+    }
+  }
+}
+
 @media screen and (min-width: breakpoint(lg)) {
   :host-context(.main-col:not(.expanded)) {
     .video-channel-buttons {
index 6cec7c0d56e1517417601feac390aad48692b349..6ab3826bafb66fe1b7c0879165d4456639540af8 100644 (file)
@@ -1,16 +1,19 @@
-<h1 class="d-flex justify-content-between">
+<h1>
   <span>
     <my-global-icon iconName="subscriptions" aria-hidden="true"></my-global-icon>
     <ng-container i18n>My subscriptions</ng-container>
     <span class="badge badge-secondary"> {{ pagination.totalItems }}</span>
   </span>
+</h1>
 
+<div class="video-subscriptions-header d-flex justify-content-between">
   <div class="has-feedback has-clear">
-    <input type="text" placeholder="Search your subscriptions" i18n-placeholder [(ngModel)]="subscriptionsSearch" (ngModelChange)="onSubscriptionsSearchChanged()" />
+    <input type="text" placeholder="Search your subscriptions" i18n-placeholder [(ngModel)]="subscriptionsSearch"
+      (ngModelChange)="onSubscriptionsSearchChanged()" />
     <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
     <span class="sr-only" i18n>Clear filters</span>
   </div>
-</h1>
+</div>
 
 <div class="no-results" i18n *ngIf="pagination.totalItems === 0">You don't have any subscriptions yet.</div>
 
index 8849590708194e3b59617d58729ea85ebfe65b8b..5ead45dd85a6911c5ac838e010a1386189cbac97 100644 (file)
@@ -45,11 +45,11 @@ input[type=text] {
   }
 }
 
-@media screen and (max-width: $small-view) {
-  .video-channels-header {
-    text-align: center;
-  }
+.video-subscriptions-header {
+  margin-bottom: 30px;
+}
 
+@media screen and (max-width: $small-view) {
   .video-channel {
     .video-channel-info {
       padding-bottom: 10px;
@@ -68,4 +68,14 @@ input[type=text] {
   }
 }
 
+@media screen and (max-width: $mobile-view) {
+  .video-subscriptions-header {
+    flex-direction: column;
+
+    input[type=text] {
+      width: 100% !important;
+    }
+  }
+}
+
 
index 3176bb8da079401e184d1b422b6212f543ebf3a0..afcf6a0845a5c46b6aa0715e393e5436a82a979d 100644 (file)
@@ -1,11 +1,14 @@
-<h1 class="d-flex justify-content-between">
+<h1>
   <span>
     <my-global-icon iconName="playlists" aria-hidden="true"></my-global-icon>
     <ng-container i18n>My playlists</ng-container> <span class="badge badge-secondary">{{ pagination.totalItems }}</span>
   </span>
+</h1>
 
+<div class="video-playlists-header d-flex justify-content-between">
   <div class="has-feedback has-clear">
-    <input type="text" placeholder="Search your playlists" i18n-placeholder [(ngModel)]="videoPlaylistsSearch" (ngModelChange)="onVideoPlaylistSearchChanged()" />
+    <input type="text" placeholder="Search your playlists" i18n-placeholder [(ngModel)]="videoPlaylistsSearch"
+      (ngModelChange)="onVideoPlaylistSearchChanged()" />
     <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
     <span class="sr-only" i18n>Clear filters</span>
   </div>
@@ -14,7 +17,7 @@
     <my-global-icon iconName="add" aria-hidden="true"></my-global-icon>
     <ng-container i18n>Create playlist</ng-container>
   </a>
-</h1>
+</div>
 
 <div class="video-playlists" myInfiniteScroller [autoInit]="true" (nearOfBottom)="onNearOfBottom()" [dataObservable]="onDataSubject.asObservable()">
   <div *ngFor="let playlist of videoPlaylists" class="video-playlist">
index ade28c70bfd658b075e3af651ca7d78334cf0e0c..2b7c882460903660b1d94bb7e63a1611c1826bc9 100644 (file)
@@ -37,6 +37,10 @@ input[type=text] {
   }
 }
 
+.video-playlists-header {
+  margin-bottom: 30px;
+}
+
 @media screen and (max-width: $small-view) {
   .video-playlists-header {
     text-align: center;
@@ -62,14 +66,6 @@ input[type=text] {
   }
 }
 
-@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;
index 779b42ab77037ab0700998f2872434de970ed5e1..f2ed0ac99c8ae2a7cd0ce30e45ad1b4790136eff 100644 (file)
@@ -1,16 +1,19 @@
-<h1 class="d-flex justify-content-between">
+<h1>
   <span>
     <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
     <ng-container i18n>My videos</ng-container>
     <span class="badge badge-secondary"> {{ pagination.totalItems }}</span>
   </span>
+</h1>
 
+<div class="videos-header d-flex justify-content-between">
   <div class="has-feedback has-clear">
-    <input type="text" placeholder="Search your videos" i18n-placeholder [(ngModel)]="videosSearch" (ngModelChange)="onVideosSearchChanged()" />
+    <input type="text" placeholder="Search your videos" i18n-placeholder [(ngModel)]="videosSearch"
+      (ngModelChange)="onVideosSearchChanged()" />
     <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetSearch()"></a>
     <span class="sr-only" i18n>Clear filters</span>
   </div>
-</h1>
+</div>
 
 <my-videos-selection
   [pagination]="pagination"
index 0930b1959331ca5103032c0ce4dd5d864fefb909..246f46320435eaac19c46fa212589f30e28d116a 100644 (file)
@@ -56,10 +56,6 @@ my-edit-button {
 }
 
 @media screen and (max-width: $small-view) {
-  .videos-header {
-    flex-direction: column;
-  }
-
   .action-button {
     flex-direction: column;
     align-self: center;
@@ -119,3 +115,13 @@ my-edit-button {
     }
   }
 }
+
+@media screen and (max-width: $mobile-view) {
+  .videos-header {
+    flex-direction: column;
+
+    input[type=text] {
+      width: 100% !important;
+    }
+  }
+}