Improve responsive on small screens
[oweals/peertube.git] / client / src / app / +my-account / my-account.component.html
index 74742649c28afdfca0064c5f1e1e7ee00117cba0..b602fd69fa4eff9906db6f8d26c14919428de5a4 100644 (file)
@@ -2,13 +2,24 @@
   <div class="sub-menu">
     <a i18n routerLink="/my-account/settings" routerLinkActive="active" class="title-page">My settings</a>
 
-    <a i18n routerLink="/my-account/video-channels" routerLinkActive="active" class="title-page">My channels</a>
+    <div ngbDropdown class="my-library">
+      <span role="button" class="title-page" [ngClass]="{ active: libraryLabel !== '' }" ngbDropdownToggle>
+        <ng-container i18n>My library</ng-container>
+        <ng-container *ngIf="libraryLabel"> - {{ libraryLabel }}</ng-container>
+      </span>
 
-    <a i18n routerLink="/my-account/videos" routerLinkActive="active" class="title-page">My videos</a>
+      <div ngbDropdownMenu>
+        <a class="dropdown-item" i18n routerLink="/my-account/video-channels">My channels</a>
 
-    <a i18n routerLink="/my-account/subscriptions" routerLinkActive="active" class="title-page">My subscriptions</a>
+        <a class="dropdown-item" i18n routerLink="/my-account/videos">My videos</a>
 
-    <a *ngIf="isVideoImportEnabled()" i18n routerLink="/my-account/video-imports" routerLinkActive="active" class="title-page">My imports</a>
+        <a class="dropdown-item" i18n routerLink="/my-account/subscriptions">My subscriptions</a>
+
+        <a class="dropdown-item" *ngIf="isVideoImportEnabled()" i18n routerLink="/my-account/video-imports">My imports</a>
+      </div>
+    </div>
+
+    <a i18n routerLink="/my-account/ownership" routerLinkActive="active" class="title-page">Ownership changes</a>
   </div>
 
   <div class="margin-content">