Center search fields (my videos/playlists)
authorChocobozzz <me@florianbigard.com>
Tue, 21 Jan 2020 10:43:41 +0000 (11:43 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 21 Jan 2020 12:58:33 +0000 (13:58 +0100)
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 49bf834c46023f886aff696ee5030c12ba60acbe..dd6a0e55baf5fdb32dc35f5ad36a45dbbea05cdf 100644 (file)
@@ -1,8 +1,6 @@
-<div>
+<div class="video-playlists-header">
   <h4 i18n>Playlists <span class="badge badge-secondary">{{ pagination.totalItems }}</span></h4>
-</div>
 
-<div class="video-playlists-header">
   <input type="text" placeholder="Search your playlists" i18n-placeholder [(ngModel)]="videoPlaylistsSearch" (ngModelChange)="onVideoPlaylistSearchChanged()" />
 
   <a class="create-button" routerLink="create">
index 4fb4ed4be25d1ce7b8cf988b87a6dafc6b81b1e2..4e4156b22c605a11fbb13fe56dbf8647699f2979 100644 (file)
@@ -36,7 +36,6 @@
 .video-playlists-header {
   display: flex;
   justify-content: space-between;
-  text-align: right;
   margin: 20px 0 50px;
 
   input[type=text] {
index 7479c84f9b0f05903f966cc34444dff9b738b225..b07b9c1a6cbb77b7fc02be661d64df2458a6cd63 100644 (file)
@@ -1,9 +1,9 @@
-<div>
+<div class="videos-header">
   <h4 i18n>Videos <span class="badge badge-secondary">{{ pagination.totalItems }}</span></h4>
-</div>
 
-<div class="videos-header">
   <input type="text" placeholder="Search your videos" i18n-placeholder [(ngModel)]="videosSearch" (ngModelChange)="onVideosSearchChanged()" />
+
+  <div class="fake-element"></div>
 </div>
 
 <my-videos-selection
index f798c50b5fc4136c7bfc76a29839bbbd68b9538b..8248cc94faae3fa4a8031903632fc56b51902241 100644 (file)
@@ -4,9 +4,13 @@
 .videos-header {
   display: flex;
   justify-content: space-between;
-  text-align: right;
   margin: 20px 0 50px;
 
+  h4,
+  .fake-element {
+    flex: 1;
+  }
+
   input[type=text] {
     @include peertube-input-text(300px);
   }