web/admin: more consistent label usage, use compact labels

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-12-25 14:06:29 +01:00
parent 7e44de2da9
commit 5132f0f876
4 changed files with 23 additions and 14 deletions

View File

@ -22,6 +22,9 @@ export class Label extends AKElement {
@property()
icon?: string;
@property({ type: Boolean })
compact = false;
static get styles(): CSSResult[] {
return [PFBase, PFLabel, AKGlobal];
}
@ -35,14 +38,14 @@ export class Label extends AKElement {
case PFColor.Red:
return "fa-times";
case PFColor.Grey:
return "fa-question-circle";
return "fa-info-circle";
default:
return "";
}
}
render(): TemplateResult {
return html`<span class="pf-c-label ${this.color}">
return html`<span class="pf-c-label ${this.color} ${this.compact ? "pf-m-compact" : ""}">
<span class="pf-c-label__content">
<span class="pf-c-label__icon">
<i