web/elements: fix height when using PageHeader with Image

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-11 19:38:24 +02:00
parent ca51afb7df
commit 1be1654bf2
2 changed files with 5 additions and 11 deletions

View File

@ -48,6 +48,9 @@ export class PageHeader extends LitElement {
.pf-c-page__main-section { .pf-c-page__main-section {
width: 100%; width: 100%;
} }
img.pf-icon {
max-height: 24px;
}
`]; `];
} }

View File

@ -1,5 +1,5 @@
import { t } from "@lingui/macro"; 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/Tabs";
import "../../elements/charts/ApplicationAuthorizeChart"; import "../../elements/charts/ApplicationAuthorizeChart";
@ -36,16 +36,7 @@ export class ApplicationViewPage extends LitElement {
application!: Application; application!: Application;
static get styles(): CSSResult[] { static get styles(): CSSResult[] {
return [PFBase, PFPage, PFContent, PFButton, PFGallery, PFCard, AKGlobal].concat( return [PFBase, PFPage, PFContent, PFButton, PFGallery, PFCard, AKGlobal];
css`
img.pf-icon {
max-height: 24px;
}
ak-tabs {
height: 100%;
}
`
);
} }
render(): TemplateResult { render(): TemplateResult {