diff --git a/src/components/cell.ts b/src/components/cell.ts index 72b8c95..61eafa7 100644 --- a/src/components/cell.ts +++ b/src/components/cell.ts @@ -56,7 +56,9 @@ export default class IgcGridLiteCell extends LitElement { protected override render() { return html`${cache( - this.column.cellTemplate ? this.column.cellTemplate(this.context as any) : html`${this.value}` + this.column.cellTemplate + ? this.column.cellTemplate(this.context as any) + : html`${this.value}` )}`; } } diff --git a/src/styles/body-cell/body-cell.scss b/src/styles/body-cell/body-cell.scss index 7730727..93f3c07 100644 --- a/src/styles/body-cell/body-cell.scss +++ b/src/styles/body-cell/body-cell.scss @@ -31,6 +31,12 @@ $inset-shadow-width: #{rem(1px)}; border-inline-end: none; } +[part~="text"] { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} + igc-input { position: absolute; left: 0;