Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix responsive with modale and menu displayed

Chocobozzzdd7789417181
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
index d2678096f7..55c7bbf99e 100644
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -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
}
}
diff --git a/client/src/app/header/header.component.scss b/client/src/app/header/header.component.scss
index d589d66c94..63b724cbaa 100644
--- a/client/src/app/header/header.component.scss
+++ b/client/src/app/header/header.component.scss
@@ -37,6 +37,10 @@
margin-right: 25px;
+ @media screen and (max-width: 800px) {
+ margin-right: 0;
+ }
+
.icon.icon-upload {
@include icon(22px);
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index 84ffbec653..3402210020 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -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;
}