From 7034b3c908e96e3e26aaa66299b75290adc98f02 Mon Sep 17 00:00:00 2001 From: kimsible Date: Mon, 10 Aug 2020 23:28:31 +0200 Subject: Refactor - improve offset content handling with fixed sub-menu and broadcast-message --- client/src/app/+admin/admin.component.html | 2 +- client/src/app/+admin/admin.component.scss | 4 ---- client/src/app/+admin/admin.component.ts | 9 +++++++-- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'client/src/app/+admin') diff --git a/client/src/app/+admin/admin.component.html b/client/src/app/+admin/admin.component.html index d2b348545..aca4d9b0c 100644 --- a/client/src/app/+admin/admin.component.html +++ b/client/src/app/+admin/admin.component.html @@ -1,7 +1,7 @@
-
+
diff --git a/client/src/app/+admin/admin.component.scss b/client/src/app/+admin/admin.component.scss index a764efc76..61a2744ba 100644 --- a/client/src/app/+admin/admin.component.scss +++ b/client/src/app/+admin/admin.component.scss @@ -6,7 +6,3 @@ my-top-menu-dropdown { } @include sub-menu-h1; - -::ng-deep .anchor { - top: #{-($header-height + $sub-menu-height + 20px)}; // offsetTop scrollToAnchor -} diff --git a/client/src/app/+admin/admin.component.ts b/client/src/app/+admin/admin.component.ts index 7fc83351b..66e068c4c 100644 --- a/client/src/app/+admin/admin.component.ts +++ b/client/src/app/+admin/admin.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core' -import { AuthService } from '@app/core' +import { AuthService, ScreenService } from '@app/core' import { ListOverflowItem } from '@app/shared/shared-main' import { I18n } from '@ngx-translate/i18n-polyfill' import { UserRight } from '@shared/models' @@ -15,8 +15,13 @@ export class AdminComponent implements OnInit { constructor ( private auth: AuthService, + private screen: ScreenService, private i18n: I18n - ) {} + ) { } + + get isBroadcastMessageDisplayed () { + return this.screen.isBroadcastMessageDisplayed + } ngOnInit () { const federationItems: TopMenuDropdownParam = { -- cgit v1.2.3