From 6b39d616b13c0a45cbbeea356e9a00420a364730 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 14 Dec 2021 15:22:52 +0100 Subject: [PATCH] web/elements: allow aggregate cards' elements to not be centered Signed-off-by: Jens Langhammer --- web/src/elements/cards/AggregateCard.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/elements/cards/AggregateCard.ts b/web/src/elements/cards/AggregateCard.ts index 147b8c76d..ef7fb942a 100644 --- a/web/src/elements/cards/AggregateCard.ts +++ b/web/src/elements/cards/AggregateCard.ts @@ -18,6 +18,9 @@ export class AggregateCard extends LitElement { @property() headerLink?: string; + @property({ type: Boolean }) + isCenter = true; + static get styles(): CSSResult[] { return [PFBase, PFCard, PFFlex, AKGlobal].concat([ css` @@ -59,7 +62,9 @@ export class AggregateCard extends LitElement { ${this.renderHeaderLink()} -
${this.renderInner()}
+
+ ${this.renderInner()} +
`; } }