]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix responsive with modale and menu displayed
authorChocobozzz <me@florianbigard.com>
Wed, 31 Jan 2018 10:58:11 +0000 (11:58 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 31 Jan 2018 10:58:11 +0000 (11:58 +0100)
client/src/app/app.component.ts
client/src/app/header/header.component.scss
client/src/sass/application.scss

index d2678096f7887b6bed4e0c621095f39ba4f4354c..55c7bbf99ec6d790be52040e8763be77d7f7a6e7 100644 (file)
@@ -1,5 +1,5 @@
 import { Component, OnInit } from '@angular/core'
-import { NavigationEnd, Router } from '@angular/router'
+import { GuardsCheckStart, NavigationEnd, Router } from '@angular/router'
 import { AuthService, ServerService } from '@app/core'
 import { isInMobileView } from '@app/shared/misc/utils'
 
@@ -57,7 +57,7 @@ export class AppComponent implements OnInit {
     this.router.events.subscribe(
       e => {
         // User clicked on a link in the menu, change the page
-        if (e instanceof NavigationEnd && isInMobileView()) {
+        if (e instanceof GuardsCheckStart && isInMobileView()) {
           this.isMenuDisplayed = false
         }
       }
index d589d66c94d799aab2cabde2057a724eb9adcbde..63b724cbaa1252b065c1e46e48a7f48d7851692a 100644 (file)
 
   margin-right: 25px;
 
+  @media screen and (max-width: 800px) {
+    margin-right: 0;
+  }
+
   .icon.icon-upload {
     @include icon(22px);
 
index 84ffbec65316ee0be8155e27ceaab230db43ce22..34022100200f8de3b3d3f04dc95a6bb6ee305ed7 100644 (file)
@@ -367,6 +367,10 @@ table {
         margin-left: 50px;
         margin-right: 50px;
       }
+
+      .sub-menu {
+        padding-left: 50px;
+      }
     }
   }
 }
@@ -389,7 +393,7 @@ table {
       }
 
       .sub-menu {
-        padding-left: 10px;
+        padding-left: 15px;
         margin-bottom: 10px;
       }