ActivityPub-federated video streaming platform using P2P directly in your web browser
Correctly fix sub menu
Chocobozzzae2dd04617d3
diff --git a/client/src/app/+about/about.component.html b/client/src/app/+about/about.component.htmlindex da16b933d9..04a62240c7 100644--- a/client/src/app/+about/about.component.html+++ b/client/src/app/+about/about.component.html@@ -1,5 +1,5 @@<div class="row">- <div class="sub-menu">+ <div class="sub-menu sub-menu-fixed"><div class="links"><a i18n routerLink="instance" routerLinkActive="active" class="title-page title-page-about">Instance</a>diff --git a/client/src/app/+accounts/account-videos/account-videos.component.scss b/client/src/app/+accounts/account-videos/account-videos.component.scssdeleted file mode 100644index 2ba85c031a..0000000000--- a/client/src/app/+accounts/account-videos/account-videos.component.scss+++ /dev/null@@ -1,3 +0,0 @@-.title-page-single {- margin-top: 0;-}\ No newline at end of filediff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.tsindex dd47589c10..5a9241f8ee 100644--- a/client/src/app/+accounts/account-videos/account-videos.component.ts+++ b/client/src/app/+accounts/account-videos/account-videos.component.ts@@ -12,8 +12,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill'selector: 'my-account-videos',templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html',styleUrls: [- '../../shared/shared-video-miniature/abstract-video-list.scss',- './account-videos.component.scss'+ '../../shared/shared-video-miniature/abstract-video-list.scss']})export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {diff --git a/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.scss b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.scssindex cbd999fbd5..f2f42459fc 100644--- a/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.scss+++ b/client/src/app/+my-account/+my-account-video-channels/my-account-video-channels.component.scss@@ -46,10 +46,6 @@ input[type=text] {color: $grey-actor-name;margin-left: 5px;}-- .video-channel-followers {-- }}}diff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.scss b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.scssdeleted file mode 100644index 2ba85c031a..0000000000--- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.scss+++ /dev/null@@ -1,3 +0,0 @@-.title-page-single {- margin-top: 0;-}\ No newline at end of filediff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.tsindex 267c328f2a..599d38da95 100644--- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts+++ b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts@@ -12,8 +12,7 @@ import { I18n } from '@ngx-translate/i18n-polyfill'selector: 'my-video-channel-videos',templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html',styleUrls: [- '../../shared/shared-video-miniature/abstract-video-list.scss',- './video-channel-videos.component.scss'+ '../../shared/shared-video-miniature/abstract-video-list.scss']})export class VideoChannelVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {diff --git a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.htmlindex 02faa9bd5f..e4bc39a583 100644--- a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html+++ b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.html@@ -1,4 +1,4 @@-<div class="sub-menu" [ngClass]="{ 'no-scroll': isModalOpened }">+<div class="sub-menu sub-menu-fixed" [ngClass]="{ 'no-scroll': isModalOpened }"><ng-container *ngFor="let menuEntry of menuEntries; index as id"><a *ngIf="menuEntry.routerLink && isDisplayed(menuEntry)" [routerLink]="menuEntry.routerLink" routerLinkActive="active" class="title-page title-page-settings">{{ menuEntry.label }}</a>diff --git a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.tsindex c3cd223077..43a9aa3520 100644--- a/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts+++ b/client/src/app/shared/shared-main/misc/top-menu-dropdown.component.ts@@ -1,5 +1,5 @@import { Subscription } from 'rxjs'-import { filter, take } from 'rxjs/operators'+import { filter } from 'rxjs/operators'import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'import { NavigationEnd, Router } from '@angular/router'import { MenuService, ScreenService } from '@app/core'diff --git a/client/src/sass/application.scss b/client/src/sass/application.scssindex f4e4d89771..1dbdd4064f 100644--- a/client/src/sass/application.scss+++ b/client/src/sass/application.scss@@ -145,16 +145,23 @@ label {.sub-menu {background-color: pvar(--submenuColor);width: 100%;- height: $sub-menu-height;display: flex;align-items: center;padding-left: $not-expanded-horizontal-margins;padding-right: $not-expanded-horizontal-margins;- position: fixed;- z-index: #{z('header') - 1};& + .margin-content {- padding-top: $sub-menu-height + $sub-menu-margin-bottom;+ padding-top: $sub-menu-margin-bottom;+ }++ &.sub-menu-fixed {+ height: $sub-menu-height;+ position: fixed;+ z-index: #{z('header') - 1};++ & + .margin-content {+ padding-top: $sub-menu-height + $sub-menu-margin-bottom;+ }}}