Align table icons centrally
This commit is contained in:
committed by
Lee Kelleher
parent
12aa0f354c
commit
9d4a5c09f9
@@ -204,7 +204,7 @@ export class UmbTableElement extends LitElement {
|
||||
if (this.config.hideIcon && !this.config.allowSelection) return;
|
||||
|
||||
return html`
|
||||
<uui-table-head-cell style="--uui-table-cell-padding: 0">
|
||||
<uui-table-head-cell style="--uui-table-cell-padding: 0; text-align: center;">
|
||||
${when(
|
||||
this.config.allowSelection,
|
||||
() =>
|
||||
@@ -236,7 +236,7 @@ export class UmbTableElement extends LitElement {
|
||||
if (this.config.hideIcon && !this.config.allowSelection) return;
|
||||
|
||||
return html`
|
||||
<uui-table-cell>
|
||||
<uui-table-cell style="text-align: center;">
|
||||
${when(!this.config.hideIcon, () => html`<umb-icon name="${ifDefined(item.icon ?? undefined)}"></umb-icon>`)}
|
||||
${when(
|
||||
this.config.allowSelection,
|
||||
|
||||
Reference in New Issue
Block a user