Merge pull request #1100 from umbraco/bugfix/table-without-icon-width
Bugfix/table without icon width
This commit is contained in:
@@ -155,7 +155,11 @@ export class UmbTableElement extends LitElement {
|
||||
|
||||
render() {
|
||||
return html`<uui-table class="uui-text">
|
||||
<uui-table-column style="width: 60px;"></uui-table-column>
|
||||
<uui-table-column
|
||||
.style=${when(
|
||||
!(this.config.allowSelection === false && this.config.hideIcon === true),
|
||||
() => 'width: 60px',
|
||||
)}></uui-table-column>
|
||||
<uui-table-head>
|
||||
${this._renderHeaderCheckboxCell()} ${this.columns.map((column) => this._renderHeaderCell(column))}
|
||||
</uui-table-head>
|
||||
|
||||
@@ -101,3 +101,14 @@ export const WithHiddenIcons: Story = {
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const WithHiddenIconsAndDisallowedSelections: Story = {
|
||||
args: {
|
||||
items: items,
|
||||
columns: columns,
|
||||
config: {
|
||||
allowSelection: false,
|
||||
hideIcon: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user