fix(core): update

This commit is contained in:
2023-10-20 11:17:42 +02:00
parent 50a84f2422
commit 555fa32ac2
2 changed files with 3 additions and 3 deletions

View File

@ -609,8 +609,8 @@ export class DeesTable<T> extends DeesElement {
// Get computed width
const width = window.getComputedStyle(cell).width;
if (cell.textContent.includes('Actions')) {
cell.style.minWidth = '68px';
cell.style.width = `${this.dataActions.filter(actionArg => actionArg.type.includes('inRow')).length * 35}px`;
const neededWidth = this.dataActions.filter(actionArg => actionArg.type.includes('inRow')).length * 35;
cell.style.width = `${Math.max(neededWidth, 68)}px`;
} else {
cell.style.width = width;
}