From 4147fbb8393f7a262635ddd3012e06922f0ed867 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 11 Apr 2021 19:38:24 +0200 Subject: [PATCH] web/elements: fix height when using PageHeader with Image Signed-off-by: Jens Langhammer --- web/src/elements/PageHeader.ts | 3 +++ web/src/pages/applications/ApplicationViewPage.ts | 13 ++----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/web/src/elements/PageHeader.ts b/web/src/elements/PageHeader.ts index ff85769fc..d207e23d8 100644 --- a/web/src/elements/PageHeader.ts +++ b/web/src/elements/PageHeader.ts @@ -48,6 +48,9 @@ export class PageHeader extends LitElement { .pf-c-page__main-section { width: 100%; } + img.pf-icon { + max-height: 24px; + } `]; } diff --git a/web/src/pages/applications/ApplicationViewPage.ts b/web/src/pages/applications/ApplicationViewPage.ts index c27fb10aa..aba5c1ac8 100644 --- a/web/src/pages/applications/ApplicationViewPage.ts +++ b/web/src/pages/applications/ApplicationViewPage.ts @@ -1,5 +1,5 @@ import { t } from "@lingui/macro"; -import { css, CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; +import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; import "../../elements/Tabs"; import "../../elements/charts/ApplicationAuthorizeChart"; @@ -36,16 +36,7 @@ export class ApplicationViewPage extends LitElement { application!: Application; static get styles(): CSSResult[] { - return [PFBase, PFPage, PFContent, PFButton, PFGallery, PFCard, AKGlobal].concat( - css` - img.pf-icon { - max-height: 24px; - } - ak-tabs { - height: 100%; - } - ` - ); + return [PFBase, PFPage, PFContent, PFButton, PFGallery, PFCard, AKGlobal]; } render(): TemplateResult {